mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 23:57:30 -04:00
makefs: Quiet a -Wdangling-pointer warning in cd9660_generate_path_table
This function temporarily stores a pointer to an on-stack variable (a TAILQ_HEAD of a temporary list) into a global variable (*n). Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D42581 (cherry picked from commit 5fc8ed9313609fbafe505deaea253e6bde5ac165)
This commit is contained in:
parent
3a54d200ae
commit
23cd7dfee4
1 changed files with 5 additions and 0 deletions
|
|
@ -49,4 +49,9 @@ LIBADD= netbsd util sbuf
|
|||
HAS_TESTS=
|
||||
SUBDIR.${MK_TESTS}+= tests
|
||||
|
||||
# cd9660_generate_path_table adds a global variable to an on-stack
|
||||
# TAILQ which temporarily stores a pointer to the on-stack TAILQ head
|
||||
# in the global
|
||||
CWARNFLAGS.cd9660.c+= ${NO_WDANGLING_POINTER}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
|||
Loading…
Reference in a new issue