From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 19:32:29 +0000 (+0200) Subject: remove trailing \n from 2 error messages X-Git-Tag: 0.1-rc1~177 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cd820c831f044e80df3989b4b6eede5dc9694388;p=xonotic%2Fgmqcc.git remove trailing \n from 2 error messages --- diff --git a/parser.c b/parser.c index 0b9428c..1e5c959 100644 --- a/parser.c +++ b/parser.c @@ -1796,14 +1796,14 @@ static bool parser_variable(parser_t *parser, ast_block *localblock) if (!isfunc) { if (!localblock && (olddecl = parser_find_global(parser, parser_tokval(parser)))) { ast_value_delete(var); - parseerror(parser, "global %s already declared here: %s:%i\n", + parseerror(parser, "global %s already declared here: %s:%i", parser_tokval(parser), ast_ctx(olddecl).file, (int)ast_ctx(olddecl).line); return false; } if (localblock && (olddecl = parser_find_local(parser, parser_tokval(parser), parser->blocklocal))) { ast_value_delete(var); - parseerror(parser, "local %s already declared here: %s:%i\n", + parseerror(parser, "local %s already declared here: %s:%i", parser_tokval(parser), ast_ctx(olddecl).file, (int)ast_ctx(olddecl).line); return false; }