aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2018-05-01 18:51:15 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2018-05-01 18:51:15 +0000
commit2cc7d3a7da20bcfd854302b1f265c6551b8a3741 (patch)
tree6a4fbd7ff8617e1040301cc5459a55a9fbb6c517 /gcc/config.gcc
parent41e2c1b0b4effb21729299c5dd7b3b2abd03d87b (diff)
downloadgcc-2cc7d3a7da20bcfd854302b1f265c6551b8a3741.zip
gcc-2cc7d3a7da20bcfd854302b1f265c6551b8a3741.tar.gz
gcc-2cc7d3a7da20bcfd854302b1f265c6551b8a3741.tar.bz2
-Wformat: fix nonsensical "wide character" message (PR c/84258)
gcc/c-family/ChangeLog: PR c/84258 * c-format.c (struct format_check_results): Add field "number_non_char". (check_format_info): Initialize it, and warn if encountered. (check_format_arg): Distinguish between wide char and everything else when detecting arrays of non-char. gcc/testsuite/ChangeLog: PR c/84258 * c-c++-common/Wformat-pr84258.c: New test. From-SVN: r259807
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions