------- Comment #3 from pinskia at gcc dot gnu dot org  2009-11-19 15:31 -------
Compiling with -W -Wall, we get the following warnings:
t.c: In function ‘main’:
t.c:9: warning: format ‘%d’ expects type ‘int *’, but argument 2 has
type ‘unsigned char *’
t.c:11: warning: format ‘%d’ expects type ‘int *’, but argument 2 has
type ‘unsigned char *’


Those warnings show that this code is undefined,


-- 

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

Reply via email to