------- Comment #1 from burnus at gcc dot gnu dot org 2008-01-12 14:04 ------- ../../../gcc-4.3-work/libgfortran/generated/maxval_i4.c:322: warning: format '%d' expects type 'int', but argument 2 has type 'long int' ../../../gcc-4.3-work/libgfortran/generated/minloc0_8_r8.c:86: warning: format '%d' expects type 'int', but argument 3 has type 'index_type'
s/%d/%ld%/g and prefixing the argument with (long) should be enough, shouldn't it? (Whether the cast is needed, can depended on the platform, e.g., 32 vs 64 bit pointers; better add to many than too few casts.) -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-01-12 14:04:27 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34746