Ticket #921 (closed bug: wontfix)

Opened 12 years ago

Last modified 12 years ago

warnings in imcc/imcparser.c (statement with no effect)

Reported by: jgabr Owned by:
Priority: minor Milestone:
Component: build Version: 1.4.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform: mac

Description

While building on Mac OS X 10.5.8:

compilers/imcc/imcparser.c
compilers/imcc/imcparser.c: In function ‘yyparse’:
compilers/imcc/imcparser.c:3091: warning: statement with no effect
compilers/imcc/imcparser.c:5229: warning: statement with no effect
compilers/imcc/imcparser.c:5386: warning: statement with no effect
compilers/imcc/imcparser.c:5390: warning: statement with no effect

Change History

Changed 12 years ago by kjs

These warnings are there on windows and linux as well. They warn about some generated code: the bison-generated boilerplate code. (compilers/pirc has them as well)

On windows you can set some #pragmas to silent these warnings (that is,using MSVC), but otherwise you cannot.

I would suggest "won't fix". Perhaps a bug report to the bison project, requesting that this be cleaned up. Patching bison-generated code would be too tricky/maintenance nightmarish.

--kjs

Changed 12 years ago by chromatic

  • status changed from new to closed
  • resolution set to wontfix

This problem is indeed in bison; it's the declaration of the YYSTACK_FREE macro. Unfortunately, the code there attempts to suppress this warning, but it apparently does not work with the current version of GCC and the warning flags we have available.

Note: See TracTickets for help on using tickets.