]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
moving opts_warn and opts_werror to con.c
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 28 Nov 2012 18:18:11 +0000 (19:18 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 28 Nov 2012 18:18:11 +0000 (19:18 +0100)
con.c
exec.c
main.c

diff --git a/con.c b/con.c
index c8c263460a1f9e5f06ab800b0d8dad6fa5df635f..f667e6db72fb1d31321b6eb88b6ad353d95fcdaf 100644 (file)
--- 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 8dc9e3cb17de0fb8575eb85b01e2d3ab5b632a1a..5e8d8bd9bd323a271053edd17577b02291b5da3c 100644 (file)
--- 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 ea79a6b069b55c89d8205211f6ab2de64656064e..b33b9591674f855541f46b60c1483059e244844f 100644 (file)
--- 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;