[patch] fix warnings with -D_FORTIFY_SOURCE and -Wformat-security

Matthias Klose doko@ubuntu.com
Sun Mar 15 22:42:00 GMT 2009


when GCC is built with a compiler which has some hardening options turned on by
default, the build fails when configured without --disable-werror.  This patch
fixes all these warnings (java doesn't need any patches, didn't check ada yet).
A biarch build r144872 doesn't show any regressions with and without this patch.

An alternative would be checking for these options and adding the
-Wno-error=format-security and -U_FORTIFY_SOURCE options.

  Matthias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-warnings.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090315/bb99932b/attachment.ksh>


More information about the Fortran mailing list