]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Error when using both -ffalse-empty-strings and -ftrue-empty-strings
authorWolfgang Bumiller <blub@speed.at>
Sat, 22 Dec 2012 15:50:09 +0000 (16:50 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sat, 22 Dec 2012 15:50:09 +0000 (16:50 +0100)
main.c

diff --git a/main.c b/main.c
index d6edd5cbf46fe9ed9b1aad9d19a07407259fb7d2..558edc339ef25b52393176f8fa780592b503482a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -508,6 +508,11 @@ int main(int argc, char **argv) {
         return usage();
     }
 
+    if (OPTS_FLAG(TRUE_EMPTY_STRINGS) && OPTS_FLAG(FALSE_EMPTY_STRINGS)) {
+        con_err("-ftrue-empty-strings and -ffalse-empty-strings are mutually exclusive");
+        exit(1);
+    }
+
     /* the standard decides which set of operators to use */
     if (opts.standard == COMPILER_GMQCC) {
         operators      = c_operators;