extern bool opts_debug;
extern bool opts_memchk;
extern bool opts_dump;
+extern bool opts_werror;
/*===================================================================*/
#define OPTS_FLAG(i) (!! (opts_flags[(i)/32] & (1<< ((i)%32))))
bool opts_debug = false;
bool opts_memchk = false;
bool opts_dump = false;
+bool opts_werror = false;
static bool opts_output_wasset = false;
}
exit(0);
}
+ else if (!strcmp(argv[0]+2, "NO_ERROR")) {
+ opts_werror = false;
+ break;
+ }
+ else if (!strcmp(argv[0]+2, "ERROR")) {
+ opts_werror = true;
+ break;
+ }
else if (!strcmp(argv[0]+2, "ALL")) {
for (itr = 0; itr < sizeof(opts_warn)/sizeof(opts_warn[0]); ++itr)
opts_warn[itr] = 0xFFFFFFFFL;
GMQCC_DEFINE_FLAG(UNKNOWN_CONTROL_SEQUENCE)
GMQCC_DEFINE_FLAG(EXTENSIONS)
GMQCC_DEFINE_FLAG(FIELD_REDECLARED)
-GMQCC_DEFINE_FLAG(ERROR)