diff options
author | Martin Liska <mliska@suse.cz> | 2020-06-11 09:12:25 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-06-11 09:12:25 +0200 |
commit | 656e363bccc1926b223eb78962338d638ba72d32 (patch) | |
tree | 81b7d68f5bafe817121d8af353b21b1044f32694 /gcc | |
parent | 184c21bf1cd04a108ed9bd04635e7d57ac39f616 (diff) | |
download | gcc-656e363bccc1926b223eb78962338d638ba72d32.zip gcc-656e363bccc1926b223eb78962338d638ba72d32.tar.gz gcc-656e363bccc1926b223eb78962338d638ba72d32.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/optc-save-gen.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/optc-save-gen.awk b/gcc/optc-save-gen.awk index 4a0e5ab..1b01008 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 (\"%<global_options%> are modified in local context\");"; } print "}"; |