mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 02:40:56 +00:00
replacing WARN_ERROR with opts_werror
This commit is contained in:
parent
d3492d4a13
commit
b421c42d4b
3 changed files with 10 additions and 1 deletions
1
gmqcc.h
1
gmqcc.h
|
@ -993,6 +993,7 @@ extern int opts_standard;
|
|||
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))))
|
||||
|
|
9
main.c
9
main.c
|
@ -31,6 +31,7 @@ int opts_standard = COMPILER_GMQCC;
|
|||
bool opts_debug = false;
|
||||
bool opts_memchk = false;
|
||||
bool opts_dump = false;
|
||||
bool opts_werror = false;
|
||||
|
||||
static bool opts_output_wasset = false;
|
||||
|
||||
|
@ -230,6 +231,14 @@ static bool options_parse(int argc, char **argv) {
|
|||
}
|
||||
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;
|
||||
|
|
|
@ -7,4 +7,3 @@ GMQCC_DEFINE_FLAG(UNUSED_VARIABLE)
|
|||
GMQCC_DEFINE_FLAG(UNKNOWN_CONTROL_SEQUENCE)
|
||||
GMQCC_DEFINE_FLAG(EXTENSIONS)
|
||||
GMQCC_DEFINE_FLAG(FIELD_REDECLARED)
|
||||
GMQCC_DEFINE_FLAG(ERROR)
|
||||
|
|
Loading…
Reference in a new issue