This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39044] -Wformat warns on printf() with stringpointer as sole argument
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2009 01:10:07 -0000
- Subject: [Bug c/39044] -Wformat warns on printf() with stringpointer as sole argument
- References: <bug-39044-14330@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-01-31 01:10 -------
[dhcp-10-98-10-23:~] apinski% ~/gcc4.3-gcc/bin/gcc -Wformat t.c -W -Wall
[dhcp-10-98-10-23:~] apinski% ~/gcc4.3-gcc/bin/gcc -Wformat t.c -W -Wall
-Wformat-security
t.c: In function 'main':
t.c:5: warning: format not a string literal and no format arguments
GNU C (GCC) version 4.3.3 20081218 (prerelease) [gcc-4_3-branch revision
142804] (i386-apple-darwin8.11.1)
Did you modify GCC at all?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39044