------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-24 17:19 -------
With -Wall, I get:
t.c: In function main:
t.c:6: warning: format %d expects type int *, but argument 2 has type
short int *
t.c:8: warning: format %d expects type int *, but argument 2 has type
short int *
Which is correct, you want %hd and not %d.
--
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=24506