From 527479c46ee026fae35cf6ebca0c7f8520ef746d Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 6 Sep 2011 16:24:49 +0000 Subject: [PATCH] don't disable cast checks in debug builds git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 7bc0ed708d..830e31f162 100644 --- a/configure.in +++ b/configure.in @@ -3109,9 +3109,6 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" - dnl disable GTK runtime type checks - TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -DG_DISABLE_CAST_CHECKS" - AFMINSTALL=afminstall TOOLKIT=GTK GUIDIST=GTK_DIST @@ -5404,6 +5401,8 @@ if test "$wxUSE_DEBUG_FLAG" = "no" ; then if test "$wxUSE_GTK" = 1 ; then if test "x$wxGTK_VERSION" = "x1" ; then CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" + else + CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS" fi fi fi -- 2.45.2