From: Martin Liska Date: Thu, 11 Jun 2020 07:12:25 +0000 (+0200) Subject: Fix -Wformat-diag in options-save.c X-Git-Tag: basepoints/gcc-12~7066 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=656e363bccc1926b223eb78962338d638ba72d32;p=thirdparty%2Fgcc.git Fix -Wformat-diag in options-save.c The patch removes bunch of warnings: options-save.c:12004:29: warning: unquoted identifier or keyword ‘global_options’ in format [-Wformat-diag] 12004 | internal_error ("Error: global_options are modified in local context\n"); gcc/ChangeLog: * optc-save-gen.awk: Quote error string. --- diff --git a/gcc/optc-save-gen.awk b/gcc/optc-save-gen.awk index 4a0e5ab64f38..1b010085b75c 100644 --- a/gcc/optc-save-gen.awk +++ b/gcc/optc-save-gen.awk @@ -967,7 +967,7 @@ for (i = 0; i < n_opts; i++) { checked_options[name]++ print " if (ptr1->x_" name " != ptr2->x_" name ")" - print " internal_error (\"Error: global_options are modified in local context\\n\");"; + print " internal_error (\"% are modified in local context\");"; } print "}";