aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-02-10 15:50:17 +0100
committerJakub Jelinek <jakub@redhat.com>2020-02-10 15:50:17 +0100
commita59aa3026821ac4883198f1858984b6f78612ae6 (patch)
tree43b27a683d641376e51fcc4983df9c4faa96cfbf /gcc/system.h
parent5602b48b2ed84feb1a5792e3d73b00b42138ca6e (diff)
downloadgcc-a59aa3026821ac4883198f1858984b6f78612ae6.zip
gcc-a59aa3026821ac4883198f1858984b6f78612ae6.tar.gz
gcc-a59aa3026821ac4883198f1858984b6f78612ae6.tar.bz2
c-format: -Wformat-diag fix [PR93641]
The last argument to strncasecmp is incorrect, so it matched even when can%' wasn't followed by t. Also, the !ISALPHA (format_chars[1]) test looks pointless, format_chars[1] must be ' if strncasecmp succeeded and so will never be ISALPHA. 2020-02-10 Jakub Jelinek <jakub@redhat.com> PR other/93641 * c-format.c (check_plain): Fix up last argument of strncasecmp. Remove useless extra test. * gcc.dg/format/gcc_diag-11.c (test_cdiag_bad_words): Add two further tests.
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions