diff options
author | Guillem Jover <guillem@hadrons.org> | 2012-07-01 09:41:03 -0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-07-01 09:41:03 -0300 |
commit | 7d6e8f1a4718e70724a3bdeb3dc3ad4c1e3897d7 (patch) | |
tree | fe8b1535b4c4be02e08be7997ad20e0b8ea234f3 /parser.y | |
parent | 41fd7888dc98d596c0e42aa3e049294e8198dd7a (diff) | |
download | mig-7d6e8f1a4718e70724a3bdeb3dc3ad4c1e3897d7.tar.gz mig-7d6e8f1a4718e70724a3bdeb3dc3ad4c1e3897d7.tar.bz2 mig-7d6e8f1a4718e70724a3bdeb3dc3ad4c1e3897d7.zip |
Fix format string build failure with _FORTIFY_SOURCE=2
* parser.y (yyerror): Use a format string instead of directly passing
the argument to error.
Diffstat (limited to 'parser.y')
-rw-r--r-- | parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ static const char *import_name(statement_kind_t sk); void yyerror(const char *s) { - error(s); + error("%s", s); } %} |