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


Reply via email to