This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36518] New: libgfortran: "warning: format '%d' expects type 'int', but"
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jun 2008 07:34:04 -0000
- Subject: [Bug fortran/36518] New: libgfortran: "warning: format '%d' expects type 'int', but"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I get the following warnings when building libgfortran.
I think they should be fixed and libgfortran should be build with -Werror.
generated/all_l1.c:142: warning: format '%d' expects type 'int', but argument 2
has type 'index_type'
generated/all_l2.c:142: warning: format '%d' expects type 'int', but argument 2
has type 'index_type'
generated/all_l4.c:142: warning: format '%d' expects type 'int', but argument 2
has type 'index_type'
generated/all_l8.c:142: warning: format '%d' expects type 'int', but argument 2
has type 'index_type'
generated/all_l16.c:142: warning: format '%d' expects type 'int', but argument
2 has type 'index_type'
generated/any_l1.c:142: warning: format '%d' expects type 'int', but argument 2
has type 'index_type'
generated/any_l2.c:142: warning: format '%d' expects type 'int', but argument 2
has type 'index_type'
generated/any_l4.c:142: warning: format '%d' expects type 'int', but argument 2
has type 'index_type'
generated/any_l8.c:142: warning: format '%d' expects type 'int', but argument 2
has type 'index_type'
generated/any_l16.c:142: warning: format '%d' expects type 'int', but argument
2 has type 'index_type'
generated/count_1_l.c:142: warning: format '%d' expects type 'int', but
argument 2 has type 'index_type'
generated/count_2_l.c:142: warning: format '%d' expects type 'int', but
argument 2 has type 'index_type'
generated/count_4_l.c:142: warning: format '%d' expects type 'int', but
argument 2 has type 'index_type'
generated/count_8_l.c:142: warning: format '%d' expects type 'int', but
argument 2 has type 'index_type'
generated/count_16_l.c:142: warning: format '%d' expects type 'int', but
argument 2 has type 'index_type'
--
Summary: libgfortran: "warning: format '%d' expects type 'int',
but"
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36518