Add missing \n after printing a warning when using -fno-diagnostics-show-option.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 9 Nov 2012 08:16:27 +0000 (09:16 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 9 Nov 2012 08:17:09 +0000 (09:17 +0100)
diagnostic.c

index 0464538..6bb53e9 100644 (file)
@@ -289,6 +289,8 @@ void warningf(warning_t const warn, source_position_t const* pos, char const *co
                        diagnosticposvf(pos, kind, fmt, ap);
                        if (diagnostics_show_option)
                                fprintf(stderr, " [-W%s]\n", s->name);
+                       else
+                               fputc('\n', stderr);
                        break;
 
                default: