This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/32953] -Wformat warns incorrectly on an unterminated format string of length 1



------- Comment #1 from dsh at gcc dot gnu dot org  2007-08-13 21:55 -------
Subject: Bug 32953

Author: dsh
Date: Mon Aug 13 21:55:01 2007
New Revision: 127399

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127399
Log:
gcc/
2007-08-3 1 Dan Hipschman  <dsh@google.com>

        PR 32953
        * c-format.c (check_format_arg): Move check for zero-length
        format strings below the check for unterminated strings.

testsuite/
2007-08-13  Dan Hipschman  <dsh@google.com>

        PR 32953
        * gcc.dg/format/array-1.c: Add an additional test for
        unterminated format strings of length 1.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-format.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/format/array-1.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32953


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]