scanner: Add GCC pragmas to disable -Wredundant-decls

Graphics / Wayland / Wayland - Jasper St. Pierre [mecheye.net] - 18 February 2014 16:28 UTC

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.

859b3e4 scanner: Add GCC pragmas to disable -Wredundant-decls
src/scanner.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share