scanner: Add GCC pragmas to disable -Wredundant-decls
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 15 Feb 2014 18:29:16 +0000 (13:29 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 18 Feb 2014 22:28:08 +0000 (14:28 -0800)
commit859b3e41f5529fefee5a5f866f257f8ae5def950
tree66229919d79024d280923086b7654ace159c81cd
parentac188e9e44f5f852ec6163d269979f725ce73b57
scanner: Add GCC pragmas to disable -Wredundant-decls

The code very intentionally emits a lot of redundant declarations
to simplify the scanner code. Somebody building with -Wredundant-decls
would have compile errors, so emit special pragmas to turn those
warnings off.

These pragmas should be ignored outside of gcc/clang.
src/scanner.c