aboutsummaryrefslogtreecommitdiffstats
path: root/trigcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-02-24 03:52:23 -0800
committerGuy Harris <guy@alum.mit.edu>2018-02-24 13:25:04 +0000
commitc0b2d82fc4462370f7a280c14c61e57bc5a7f239 (patch)
tree28f0839a741142fa76870b3e13d953c2cc9d792f /trigcap.c
parentf07d295fcf89f5a9bb58fd09bb875d56260faaab (diff)
Suppress some warnings caused by a Berkeley YACC bug/misfeature.
Berkeley YACC generates a global declaration of yylval, or the appropriately prefixed version of yylval, in the .h file, *even though it's been told to generate a pure parser, meaning it doesn't have any global variables*. Bison doesn't do this. That causes a warning due to the local declaration in the parser shadowing the global declaration. So, if this is Berkeley YACC, and we have _Pragma, and have pragmas to suppress diagnostics, we use it to turn off -Wshadow warnings. Change-Id: Ia3fecd99fa18ca9b85f6b25f53ed36c60730fad9 Reviewed-on: https://code.wireshark.org/review/26080 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'trigcap.c')
0 files changed, 0 insertions, 0 deletions