------- Comment #1 from burnus at gcc dot gnu dot org 2008-06-13 09:36 ------- Patch -- still untested.
Index: m4/ifunction_logical.m4 =================================================================== --- m4/ifunction_logical.m4 (Revision 136740) +++ m4/ifunction_logical.m4 (Arbeitskopie) @@ -121,7 +121,7 @@ name`'rtype_qual`_'atype_code (rtype * c if (extent[n] != ret_extent) runtime_error ("Incorrect extent in return value of" " u_name intrinsic in dimension %d:" - " is %ld, should be %ld", n + 1, + " is %ld, should be %ld", (int) n + 1, (long int) ret_extent, (long int) extent[n]); } } Index: configure.ac =================================================================== --- configure.ac (Revision 136740) +++ configure.ac (Arbeitskopie) @@ -126,7 +126,7 @@ if test "x$GCC" = "xyes"; then AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" ## We like to use C99 routines when available. This makes sure that ## __STDC_VERSION__ is set such that libc includes make them available. - AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings" + AM_CFLAGS="-std=gnu99 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings" ## Compile the following tests with the same system header contents ## that we'll encounter when compiling our own source files. CFLAGS="-std=gnu99 $CFLAGS" -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36518