summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-09 09:16:27 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-09 09:17:09 +0100
commit582d324d8cf91c5beb489600e4adc6566cdc3096 (patch)
tree8e66535514f26f1554f2120a1f6ce3f28b5321ca
parent5b995a62f27a4b43bdea6978b3563e2eb1f90127 (diff)
Add missing \n after printing a warning when using -fno-diagnostics-show-option.
-rw-r--r--diagnostic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/diagnostic.c b/diagnostic.c
index 0464538..6bb53e9 100644
--- a/diagnostic.c
+++ b/diagnostic.c
@@ -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: