From: Philippe E. <ph...@us...> - 2002-11-11 08:42:07
|
Update of /cvsroot/oprofile/oprofile In directory usw-pr-cvs1:/tmp/cvs-serv8316 Modified Files: ChangeLog configure.in Log Message: re-add -W -Wall and optionnaly -Werror to user space compilation regards, Phil Index: ChangeLog =================================================================== RCS file: /cvsroot/oprofile/oprofile/ChangeLog,v retrieving revision 1.683 retrieving revision 1.684 diff -u -d -r1.683 -r1.684 --- ChangeLog 11 Nov 2002 04:21:31 -0000 1.683 +++ ChangeLog 11 Nov 2002 08:42:04 -0000 1.684 @@ -1,3 +1,8 @@ +2002-11-11 Philippe Elie <ph...@wa...> + + * configure.in: add -W -Wall and optionnaly -Werror to user space + compilation + 2002-11-11 John Levon <le...@mo...> * dae/Makefile.am: Index: configure.in =================================================================== RCS file: /cvsroot/oprofile/oprofile/configure.in,v retrieving revision 1.122 retrieving revision 1.123 diff -u -d -r1.122 -r1.123 --- configure.in 10 Nov 2002 16:36:12 -0000 1.122 +++ configure.in 11 Nov 2002 08:42:04 -0000 1.123 @@ -197,7 +197,6 @@ AC_SUBST(EXTRA_CFLAGS) - dnl --- user space configuration --- # we are weak, so do not support separate build dir @@ -306,6 +305,15 @@ # inihibited for now AM_CONDITIONAL(build_oprof_report, false) + +CFLAGS="$CFLAGS -W -Wall" +CXXFLAGS="$CXXFLAGS -W -Wall" + +# enable -Werror for non-release versions. +if echo "$VERSION" | grep cvs; then + CFLAGS="$CFLAGS -Werror" + CXXFLAGS="$CXXFLAGS -Werror" +fi AC_OUTPUT(Makefile \ libutil/Makefile \ |