ast2firm: Factorise code to convert a value to its storage type.
[cparser] / warning.c
index 354d502..975f2d0 100644 (file)
--- a/warning.c
+++ b/warning.c
@@ -92,7 +92,9 @@ void print_warning_opt_help(void)
 {
        /* TODO: write explanations */
        for (warning_switch_t* i = warning; i != endof(warning); ++i) {
-               put_help(i->name, "");
+               char buf[256];
+               snprintf(buf, sizeof(buf), "-W%s", i->name);
+               put_help(buf, "");
        }
 }