Date: Mon, 8 Jan 2018 18:42:40 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r327702 - projects/clang600-import/usr.sbin/acpi/acpidb Message-ID: <201801081842.w08IgeGb033364@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Mon Jan 8 18:42:40 2018 New Revision: 327702 URL: https://svnweb.freebsd.org/changeset/base/327702 Log: Add explanatory comment for r327622: clang 6.0.0 and higher warn about the ACPI_ROOT_OBJECT and ACPI_TO_POINTER macros from acpica's actypes.h header, that they use arithmetic on a null pointer treated as a cast from integer to pointer, which is a GNU extension. We turn off the warning, because this is in contributed code. Requested by: rakuco Modified: projects/clang600-import/usr.sbin/acpi/acpidb/Makefile Modified: projects/clang600-import/usr.sbin/acpi/acpidb/Makefile ============================================================================== --- projects/clang600-import/usr.sbin/acpi/acpidb/Makefile Mon Jan 8 16:36:33 2018 (r327701) +++ projects/clang600-import/usr.sbin/acpi/acpidb/Makefile Mon Jan 8 18:42:40 2018 (r327702) @@ -81,6 +81,12 @@ LIBADD= pthread .include <bsd.prog.mk> +# clang 6.0.0 and higher warn about the ACPI_ROOT_OBJECT and +# ACPI_TO_POINTER macros from sys/contrib/dev/acpica/include/actypes.h, +# that they use arithmetic on a null pointer treated as a cast from +# integer to pointer, which is a GNU extension. +# +# Turn off the warning, because this is in contributed code. .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 60000 CWARNFLAGS+= -Wno-null-pointer-arithmetic .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801081842.w08IgeGb033364>