From: Robert Roebling Date: Thu, 7 Jan 1999 17:20:10 +0000 (+0000) Subject: Compile improvemnts for strict compilers and the like X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/06f46ad1fe42facbf80fd4d0bd3feecf03bfacd7 Compile improvemnts for strict compilers and the like Down to two warning messages for egcs compile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure b/configure index 183914e022..b4490d2518 100755 --- a/configure +++ b/configure @@ -6653,14 +6653,14 @@ EOF esac if test "x$GCC" = xyes; then - CFLAGS="${CFLAGS} -Wall" + CFLAGS="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER" fi if test "x$GXX" = xyes; then if test "$wxUSE_MOTIF" = 1; then - CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused" + CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT" else - CXXFLAGS="${CXXFLAGS} -Wall" + CXXFLAGS="${CXXFLAGS} -Wall -D_REENTRANT" fi fi diff --git a/configure.in b/configure.in index d1b8bf3462..419be3c0b6 100644 --- a/configure.in +++ b/configure.in @@ -1397,14 +1397,14 @@ case "${canonical}" in esac if test "x$GCC" = xyes; then - CFLAGS="${CFLAGS} -Wall" + CFLAGS="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER" fi if test "x$GXX" = xyes; then if test "$wxUSE_MOTIF" = 1; then - CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused" + CXXFLAGS="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT" else - CXXFLAGS="${CXXFLAGS} -Wall" + CXXFLAGS="${CXXFLAGS} -Wall -D_REENTRANT" fi fi