Suppress bogus free-nonheap-object warning in iniparse.cc
commit69ccd7669712339f4855457d68d5b885152fbfb2
authorJon Turney <jon.turney@dronecode.org.uk>
Mon, 27 Jun 2022 18:02:38 +0000 (27 19:02 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Mon, 27 Jun 2022 18:02:38 +0000 (27 19:02 +0100)
tree2085dbac3a6065582222ac46dc7e4c358794d2ec
parent894b9d59cd991cd579cc20c6181f7842a50df9b5
Suppress bogus free-nonheap-object warning in iniparse.cc

This warning bogusly occurs with -O0 in bison generated code.  The
free() is not reachable when the pointer references a non-heap object.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753

iniparse.cc: In function ‘int yyparse()’:
iniparse.cc:1789:18: warning: ‘void free(void*)’ called on unallocated object ‘yyssa’ [-Wfree-nonheap-object]
iniparse.cc:1148:16: note: declared here
Makefile.am