diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-01-08 18:42:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-01-08 18:42:40 +0000 |
commit | de82c38b7266eeac38a75a692a4d5201d7029eb5 (patch) | |
tree | f5208d247ecc452f04988daf6b53a963eb5996b9 /usr.sbin/acpi | |
parent | 687571a78b1f9bc32e884ec44c5ca94b20c6c956 (diff) | |
download | src-de82c38b7266eeac38a75a692a4d5201d7029eb5.tar.gz src-de82c38b7266eeac38a75a692a4d5201d7029eb5.zip |
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
Notes
Notes:
svn path=/projects/clang600-import/; revision=327702
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r-- | usr.sbin/acpi/acpidb/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/acpi/acpidb/Makefile b/usr.sbin/acpi/acpidb/Makefile index 493f2b897d06..513e03e8b5d5 100644 --- a/usr.sbin/acpi/acpidb/Makefile +++ b/usr.sbin/acpi/acpidb/Makefile @@ -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 |