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
This commit is contained in:
parent
687571a78b
commit
de82c38b72
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/clang600-import/; revision=327702
@ -81,6 +81,12 @@ LIBADD= pthread
|
|||||||
|
|
||||||
.include <bsd.prog.mk>
|
.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
|
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 60000
|
||||||
CWARNFLAGS+= -Wno-null-pointer-arithmetic
|
CWARNFLAGS+= -Wno-null-pointer-arithmetic
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user