]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
flags and warnings not printed anymore without -dump
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 14 Aug 2012 14:20:39 +0000 (16:20 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 14 Aug 2012 14:20:39 +0000 (16:20 +0200)
main.c

diff --git a/main.c b/main.c
index 75813d279683dd877349b37a6b66b600d72f6445..21c0a0334c37b42dfa63591cb150d353b35ee922 100644 (file)
--- a/main.c
+++ b/main.c
@@ -347,15 +347,17 @@ int main(int argc, char **argv) {
         return usage();
     }
 
-    for (itr = 0; itr < COUNT_FLAGS; ++itr) {
-        printf("Flag %s = %i\n", opts_flag_list[itr].name, OPTS_FLAG(itr));
-    }
-    for (itr = 0; itr < COUNT_WARNINGS; ++itr) {
-        printf("Warning %s = %i\n", opts_warn_list[itr].name, OPTS_WARN(itr));
+    if (opts_dump) {
+        for (itr = 0; itr < COUNT_FLAGS; ++itr) {
+            printf("Flag %s = %i\n", opts_flag_list[itr].name, OPTS_FLAG(itr));
+        }
+        for (itr = 0; itr < COUNT_WARNINGS; ++itr) {
+            printf("Warning %s = %i\n", opts_warn_list[itr].name, OPTS_WARN(itr));
+        }
+        printf("output = %s\n", opts_output);
+        printf("optimization level = %i\n", (int)opts_O);
+        printf("standard = %i\n", opts_standard);
     }
-    printf("output = %s\n", opts_output);
-    printf("optimization level = %i\n", (int)opts_O);
-    printf("standard = %i\n", opts_standard);
 
     if (!parser_init()) {
         printf("failed to initialize parser\n");