From a0e65ab1194c2cde35b77ff26265a429881d2cd0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 4 Apr 2002 10:17:33 +0000 Subject: [PATCH] Fix syntax error related to __VA_ARGS__. --- src/ChangeLog | 7 +++++++ src/po-lex.h | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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; \ -- 2.47.2