From fef9303381a02c424518f4c779c574b2dcd46a12 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Wed, 28 Nov 2012 19:18:11 +0100 Subject: [PATCH] moving opts_warn and opts_werror to con.c --- con.c | 3 +++ exec.c | 2 -- main.c | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.2