Re: [PATCH] scanner: Add GCC pragmas to disable -Wredundant-decls

2014-02-18 Thread Kristian Høgsberg
On Sat, Feb 15, 2014 at 01:29:16PM -0500, Jasper St. Pierre wrote: > 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. > > The

[PATCH] scanner: Add GCC pragmas to disable -Wredundant-decls

2014-02-15 Thread Jasper St. Pierre
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 | 4 +++-