https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93641

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:a59aa3026821ac4883198f1858984b6f78612ae6

commit r10-6547-ga59aa3026821ac4883198f1858984b6f78612ae6
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Mon Feb 10 15:50:17 2020 +0100

    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  <ja...@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.

Reply via email to