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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user