]> git.saurik.com Git - bison.git/commitdiff
Pacify gcc warnings.
authorAkim Demaille <demaille@gostai.com>
Wed, 21 Jul 2010 16:10:50 +0000 (18:10 +0200)
committerAkim Demaille <demaille@gostai.com>
Wed, 21 Jul 2010 16:12:42 +0000 (18:12 +0200)
* src/getargs.c (skeleton_arg): Pass "%s" to printf-like functions
with variable format and no argument.

ChangeLog
src/getargs.c

index 2da62cce1172cfc5e26488aaa495e7f4207ddc68..64aaf0045ce495cce773fa237737845a5975daff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-21  Akim Demaille  <demaille@gostai.com>
+
+       Pacify gcc warnings.
+       * src/getargs.c (skeleton_arg): Pass "%s" to printf-like functions
+       with variable format and no argument.
+
 2010-06-17  Paul Eggert  <eggert@cs.ucla.edu>
 
        Update from GFDL GFDL 1.2 to 1.3.
index 27bc89745ea0aa59665d7112d48f604e7007f96d..7cbb42edc084a10acebfb3face73b57e63b92b93 100644 (file)
@@ -370,9 +370,9 @@ skeleton_arg (char const *arg, int prio, location const *loc)
       char const *msg =
        _("multiple skeleton declarations are invalid");
       if (loc)
-       complain_at (*loc, msg);
+       complain_at (*loc, "%s", msg);
       else
-       complain (msg);
+       complain ("%s", msg);
     }
 }