public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52952] New: Wformat location info is bad (wrong column number)
@ 2012-04-12 21:22 manu at gcc dot gnu.org
  2012-04-12 21:23 ` [Bug c/52952] " manu at gcc dot gnu.org
                   ` (26 more replies)
  0 siblings, 27 replies; 28+ messages in thread
From: manu at gcc dot gnu.org @ 2012-04-12 21:22 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52952
           Summary: Wformat location info is bad (wrong column number)
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: manu@gcc.gnu.org


#include <stdio.h>
void f() {
   printf("%.*d");
}

$ gcc-4.8 -fsyntax-only  -Wformat format-strings.c
format-strings.c: In function 'f':
format-strings.c:3:4: warning: field precision specifier '.*' expects a
matching 'int' argument [-Wformat]
    printf("%.*d");
    ^
format-strings.c:3:4: warning: format '%d' expects a matching 'int' argument
[-Wformat]
    printf("%.*d");
    ^

$ clang-3.1 -fsyntax-only format-strings.c
format-strings.c:3:14: warning: '.*' specified field precision is missing a
matching 'int' argument
   printf("%.*d");
           ~~^~


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2015-09-08 15:07 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12 21:22 [Bug c/52952] New: Wformat location info is bad (wrong column number) manu at gcc dot gnu.org
2012-04-12 21:23 ` [Bug c/52952] " manu at gcc dot gnu.org
2012-05-17 23:35 ` steven at gcc dot gnu.org
2012-05-18  1:15 ` steven at gcc dot gnu.org
2012-05-21 23:44 ` steven at gcc dot gnu.org
2012-05-21 23:46 ` steven at gcc dot gnu.org
2012-05-22  9:59 ` jakub at gcc dot gnu.org
2012-05-22 10:20 ` manu at gcc dot gnu.org
2012-05-22 12:33 ` manu at gcc dot gnu.org
2012-05-22 12:33 ` manu at gcc dot gnu.org
2012-05-24 18:44 ` dodji at seketeli dot org
2012-05-24 19:13 ` manu at gcc dot gnu.org
2012-05-24 20:39 ` dodji at seketeli dot org
2012-05-25 14:18 ` manu at gcc dot gnu.org
2012-05-25 14:50 ` jakub at gcc dot gnu.org
2012-06-04 11:19 ` manu at gcc dot gnu.org
2013-03-30 12:32 ` manu at gcc dot gnu.org
2013-03-30 13:26 ` manu at gcc dot gnu.org
2013-03-30 15:02 ` manu at gcc dot gnu.org
2013-04-01 14:18 ` manu at gcc dot gnu.org
2013-04-05 22:02 ` manu at gcc dot gnu.org
2014-08-05 18:44 ` manu at gcc dot gnu.org
2014-08-19  2:06 ` manu at gcc dot gnu.org
2014-10-04 23:36 ` manu at gcc dot gnu.org
2014-10-05 13:11 ` manu at gcc dot gnu.org
2014-11-08 16:20 ` manu at gcc dot gnu.org
2015-03-27 15:17 ` manu at gcc dot gnu.org
2015-09-08 15:07 ` manu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).