This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25745] Nearly drove me crazy!
- 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: 11 Jan 2006 04:58:10 -0000
- Subject: [Bug c/25745] Nearly drove me crazy!
- References: <bug-25745-12003@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 2006-01-11 04:58 -------
If you read the instructions to file a bug you would notice that you should try
-W -Wall. With those options I get a couple of warnings:
t.c:20: warning: format ?%d? expects type ?int *?, but argument 2 has type
?short int *?
t.c:27: warning: format ?%d? expects type ?int *?, but argument 2 has type
?short int *?
Once I changed the type to int, this program now works correctly (before it did
not).
So this is not a bug at all.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25745