From: Bruno Haible Date: Thu, 4 Apr 2002 10:17:33 +0000 (+0000) Subject: Fix syntax error related to __VA_ARGS__. X-Git-Tag: 0.11.2-branchpoint~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e65ab1194c2cde35b77ff26265a429881d2cd0;p=thirdparty%2Fgettext.git Fix syntax error related to __VA_ARGS__. --- diff --git a/src/ChangeLog b/src/ChangeLog index c7c1cdd1b..db7ae8181 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2002-04-04 Bruno Haible + + * po-lex.h (po_gram_error): Use __VA_ARGS__ + 0 instead of __VA_ARGS__. + (po_gram_error_at_line): LIkewise. + Fixes syntax error when __VA_ARGS__ is empty. + Reported by Trond Eivind Glomsrød . + 2002-04-04 Bruno Haible * msginit.c (find_pot): Add dummy return, to avoid gcc warning. diff --git a/src/po-lex.h b/src/po-lex.h index 344aa76e7..351c11680 100644 --- a/src/po-lex.h +++ b/src/po-lex.h @@ -82,7 +82,7 @@ extern void po_lex_pass_obsolete_entries PARAMS ((bool flag)); error_with_progname = false; \ error (0, 0, totalfmt, gram_pos.file_name, \ (unsigned long) gram_pos.line_number, gram_pos_column + 1, \ - __VA_ARGS__); \ + __VA_ARGS__ + 0); \ error_with_progname = true; \ free (totalfmt); \ if (*fmt == '.') \ @@ -98,7 +98,7 @@ extern void po_lex_pass_obsolete_entries PARAMS ((bool flag)); do { \ error_with_progname = false; \ error_at_line (0, 0, (pos)->file_name, (pos)->line_number, \ - fmt, __VA_ARGS__); \ + fmt, __VA_ARGS__ + 0); \ error_with_progname = true; \ if (*fmt == '.') \ --error_message_count; \