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/25745] Nearly drove me crazy!



------- 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



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