svn commit: r327702 - projects/clang600-import/usr.sbin/acpi/acpidb
Dimitry Andric
dim at FreeBSD.org
Mon Jan 8 18:42:41 UTC 2018
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
More information about the svn-src-projects
mailing list