I use autotools to manage my CPP project. When compile my code, gcc has these flags: -Wall -Werror
So, when there is an warning in my code, gcc will treat it as error, the compile will be interrupted.
My project also includes antlr3, which generate several files. The generated files contain several warnings, which interrupt compiling.
error: unused variable ‘index21_49’
in CongerCQLLexer.c, line 20589, column 24
20587> ANTLR3_UINT32 LA21_49;
20588>
20589> ANTLR3_MARKER index21_49;
20590>
20591>
error: unused variable ‘index21_131’
in CongerCQLLexer.c, line 20622, column 24
20620> ANTLR3_UINT32 LA21_131;
20621>
20622> ANTLR3_MARKER index21_131;
20623>
20624>
I want to know how to disable warnings for the generated files? thank you.