summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-09 08:16:51 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-09 09:17:09 +0100
commit6275ceca70721ec10e92124fb5bfa368e9db539b (patch)
tree403482dce7428a049113aa0ed6696f2f30a46b4b
parent582d324d8cf91c5beb489600e4adc6566cdc3096 (diff)
Remove \n from error messages.
-rw-r--r--attribute.c8
-rw-r--r--preprocessor.c3
2 files changed, 3 insertions, 8 deletions
diff --git a/attribute.c b/attribute.c
index ca9ad19..c8472c8 100644
--- a/attribute.c
+++ b/attribute.c
@@ -188,15 +188,11 @@ static void handle_attribute_aligned(const attribute_t *attribute,
}
if (!is_po2(alignment)) {
- errorf(&attribute->source_position,
- "alignment must be a power of 2 but is %d\n",
- alignment);
+ errorf(&attribute->source_position, "alignment must be a power of 2 but is %d", alignment);
return;
}
if (alignment <= 0) {
- errorf(&attribute->source_position,
- "alignment must be bigger than 0 but is %d\n",
- alignment);
+ errorf(&attribute->source_position, "alignment must be bigger than 0 but is %d", alignment);
return;
}
diff --git a/preprocessor.c b/preprocessor.c
index 55c1e3e..74b8277 100644
--- a/preprocessor.c
+++ b/preprocessor.c
@@ -1532,8 +1532,7 @@ digraph_percentcolon:
default:
dollar_sign:
if (error_on_unknown_chars) {
- errorf(&pp_token.base.source_position,
- "unknown character '%lc' found\n", input.c);
+ errorf(&pp_token.base.source_position, "unknown character '%lc' found", input.c);
next_char();
goto restart;
} else {