Skip to content

Commit 87d48f4

Browse files
committed
Fix GCC 11 false free-nonheap-obj warning.
1 parent 580b991 commit 87d48f4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ indicates the contributor was also the author of the fix; Thanks!
88

99
**** Fix t/03_spaces.t test for Debian (#1675). [Gregor Herrmann]
1010

11+
**** Fix GCC 11 false free-nonheap-obj warning.
12+
1113

1214
* Verilog-Perl 3.480 2022-09-01
1315

Parser/VParseBison.y

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,11 @@ static void NEED_S09(VFileLine*, const string&) {
325325
//fileline->error((string)"Advanced feature: \""+tokname+"\" is a 1800-2009 construct, but used under --language 1800-2005 or earlier.");
326326
}
327327

328+
// gcc-11 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98753
329+
#if defined(__GNUC__) && __GNUC__ == 11
330+
#pragma GCC diagnostic ignored "-Wfree-nonheap-object"
331+
#endif
332+
328333
%}
329334

330335
BISONPRE_VERSION(0.0, 2.999, %pure_parser)

0 commit comments

Comments
 (0)