jorton 2002/11/14 13:45:34
Modified: . configure.in Log: Prevent test for C99 variable length arrays from failing with GCC if CPPFLAGS contains -Wall (e.g. if --enable-maintainer-mode is used). GCC gave warnings for the unused variable and lack of atoi prototype with -Wall. PR: 13036 Revision Changes Path 1.501 +2 -1 apr/configure.in Index: configure.in =================================================================== RCS file: /home/cvs/apr/configure.in,v retrieving revision 1.500 retrieving revision 1.501 diff -u -r1.500 -r1.501 --- configure.in 14 Nov 2002 21:13:42 -0000 1.500 +++ configure.in 14 Nov 2002 21:45:34 -0000 1.501 @@ -1343,7 +1343,8 @@ AC_MSG_CHECKING(for Variable Length Arrays) APR_TRY_COMPILE_NO_WARNING([], [ - int foo[atoi(argv[1])]; + int foo[argc]; + foo[0] = 0; ], vla_msg=yes, vla_msg=no ) AC_MSG_RESULT([$vla_msg]) if test "$vla_msg" = "yes"; then
