diff --git a/con.c b/con.c index c8c2634..f667e6d 100644 --- a/con.c +++ b/con.c @@ -22,6 +22,9 @@ */ #include "gmqcc.h" +uint32_t opts_warn [1 + (COUNT_WARNINGS / 32)]; +bool opts_werror = false; + /* * isatty/STDERR_FILENO/STDOUT_FILNO * + some other things likewise. diff --git a/exec.c b/exec.c index 8dc9e3c..5e8d8bd 100644 --- a/exec.c +++ b/exec.c @@ -633,8 +633,6 @@ const char *type_name[TYPE_COUNT] = { bool opts_debug = false; bool opts_memchk = false; -uint32_t opts_warn [1 + (COUNT_WARNINGS / 32)]; -bool opts_werror = false; typedef struct { int vtype; diff --git a/main.c b/main.c index ea79a6b..b33b959 100644 --- a/main.c +++ b/main.c @@ -25,7 +25,6 @@ #include "lexer.h" uint32_t opts_flags[1 + (COUNT_FLAGS / 32)]; -uint32_t opts_warn [1 + (COUNT_WARNINGS / 32)]; uint32_t opts_O = 1; const char *opts_output = "progs.dat"; @@ -34,7 +33,6 @@ bool opts_debug = false; bool opts_memchk = false; bool opts_dumpfin = false; bool opts_dump = false; -bool opts_werror = false; bool opts_forcecrc = false; bool opts_pp_only = false; size_t opts_max_array_size = 1024;