Commit 775cb68
committed
Disable free-nonheap-object warnings
Without disabling this warning, g++ 11.1.0 emits this warning:
/project/erpc/Debug/Linux/erpcsniffer/obj/erpcgen_parser.tab.cpp: In function ‘int yyparse(erpcgen::ErpcLexer*, erpcgen::AstNode**)’:
/project/erpc/Debug/Linux/erpcsniffer/obj/erpcgen_parser.tab.cpp:3810:18: error: ‘void free(void*)’ called on unallocated object ‘yyssa’ [-Werror=free-nonheap-object]
3810 | YYSTACK_FREE (yyss);
/project/erpc/Debug/Linux/erpcsniffer/obj/erpcgen_parser.tab.cpp:2025:16: note: declared here
2025 | yy_state_t yyssa[YYINITDEPTH];
| ^~~~~
cc1plus: all warnings being treated as errors
Since -Werror is also enabled, this prevents erpcsniffer from building.
Background on false positives relating to this warning:
https://www.mail-archive.com/help-bison@gnu.org/msg04296.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=542021 parent a448570 commit 775cb68
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments