[Patch, Fortran, committed] PR36518 - Enable -Werror for libgfortran and fix a warning
Tobias Burnus
burnus@net-b.de
Fri Jun 13 18:44:00 GMT 2008
When building "libgfortran", I got the error:
warning: format '%d' expects type 'int', but argument 2 has type
'index_type'
which I fixed by a cast.
In order to ensure this won't happen again, I now build libgfortran with
"-Werror". I hope the latter will not break too many platforms - on my
system (x86-64-gnu-linux) libgfortran builds without any error/warning,
but I'm not positive that this also the case for other platforms.
Hopefully, the fallout (if any) is easily fixable.
Committed as Rev. 136761.
Tobias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libg-Werror.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080613/49902764/attachment.ksh>
More information about the Fortran
mailing list