Hi all,
following common practice, assert() statements are only evaluated in debugging versions of the code. Therefore I'd like to disable them unless --enable-maintainer-mode is explicitly selected as a ./configure argument.
Roland
Index: configure.ac =================================================================== RCS file: /cvsroot/mc/mc/configure.ac,v retrieving revision 1.21 diff -u -p -r1.21 configure.ac --- configure.ac 19 Mar 2005 17:27:36 -0000 1.21 +++ configure.ac 6 Apr 2005 17:49:56 -0000 @@ -559,6 +559,8 @@ if test x"$USE_MAINTAINER_MODE" = x"yes" CFLAGS="-Wall $CFLAGS" fi fi +else + CPPFLAGS="-DNDEBUG ${CPPFLAGS}" fi ri_GCC_WARNINGS
_______________________________________________ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel