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