mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
acpica: Quiet a -Wdangling-pointer warning in AcpiUtInitStackPtrTrace.
This function intentionally saves a pointer to an on-stack variable in a global as a dubious way of reading the stack pointer. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37535
This commit is contained in:
parent
1055bedbed
commit
f4432625ed
2 changed files with 8 additions and 0 deletions
|
|
@ -90,3 +90,7 @@ LIBADD= pthread
|
|||
.if ${COMPILER_TYPE} == "clang"
|
||||
CWARNFLAGS+= -Wno-null-pointer-arithmetic
|
||||
.endif
|
||||
|
||||
# AcpiUtInitStackPtrTrace intentionally leaks a pointer to an
|
||||
# on-stack variable.
|
||||
CWARNFLAGS.utdebug.c+= ${NO_WDANGLING_POINTER}
|
||||
|
|
|
|||
|
|
@ -147,4 +147,8 @@ prparserparse.c prparserparse.h: prparser.y
|
|||
prparser.y.h: prparserparse.h .NOMETA
|
||||
ln -f ${.ALLSRC} ${.TARGET}
|
||||
|
||||
# AcpiUtInitStackPtrTrace intentionally leaks a pointer to an
|
||||
# on-stack variable.
|
||||
CWARNFLAGS.utdebug.c+= ${NO_WDANGLING_POINTER}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
|||
Loading…
Reference in a new issue