]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix syntax error related to __VA_ARGS__.
authorBruno Haible <bruno@clisp.org>
Thu, 4 Apr 2002 10:17:33 +0000 (10:17 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:07:52 +0000 (12:07 +0200)
src/ChangeLog
src/po-lex.h

index c7c1cdd1b27e7e546653265e8a294e41d535f9ab..db7ae8181d2afa07c16694945427f485ee315e44 100644 (file)
@@ -1,3 +1,10 @@
+2002-04-04  Bruno Haible  <bruno@clisp.org>
+
+       * 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 <teg@redhat.com>.
+
 2002-04-04  Bruno Haible  <bruno@clisp.org>
 
        * msginit.c (find_pot): Add dummy return, to avoid gcc warning.
index 344aa76e77fa69a6ee95c86cc6f4dd538d4034fc..351c11680f2cb9ac7ef23d826599296e4008cb1e 100644 (file)
@@ -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;                                               \