From: Wolfgang (Blub) Bumiller Date: Wed, 28 Nov 2012 18:18:11 +0000 (+0100) Subject: moving opts_warn and opts_werror to con.c X-Git-Tag: 0.1.9~201 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=fef9303381a02c424518f4c779c574b2dcd46a12;hp=3c1992fc3825e922a4f881877189be543669834b moving opts_warn and opts_werror to con.c --- 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;