From: Akim Demaille Date: Wed, 21 Jul 2010 16:10:50 +0000 (+0200) Subject: Pacify gcc warnings. X-Git-Tag: v2.4.3_rc1~5 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/a151f354cfd8627b3fb1930bf95d42d7af973af6 Pacify gcc warnings. * src/getargs.c (skeleton_arg): Pass "%s" to printf-like functions with variable format and no argument. --- diff --git a/ChangeLog b/ChangeLog index 2da62cce..64aaf004 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-07-21 Akim Demaille + + 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 Update from GFDL GFDL 1.2 to 1.3. diff --git a/src/getargs.c b/src/getargs.c index 27bc8974..7cbb42ed 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -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); } }