From eb8fecbc340befc79be5be51d10d680c54f37e2d Mon Sep 17 00:00:00 2001 From: rakshasa Date: Mon, 24 Oct 2005 10:40:55 +0000 Subject: [PATCH] * Fixed various compiler warnings. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@585 e378c898-3ddf-0310-93e7-cc216c733640 --- rak/functional.h | 2 +- scripts/common.m4 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rak/functional.h b/rak/functional.h index 1646ab19..dc5a6721 100644 --- a/rak/functional.h +++ b/rak/functional.h @@ -411,7 +411,7 @@ private: }; template -class mem_fn2 { +class mem_fn2 : public std::binary_function { public: typedef Ret (Object::*Function)(Arg1, Arg2); diff --git a/scripts/common.m4 b/scripts/common.m4 index eacf3f15..92c2210f 100644 --- a/scripts/common.m4 +++ b/scripts/common.m4 @@ -28,10 +28,10 @@ AC_DEFUN([TORRENT_ENABLE_DEBUG], [ AC_DEFUN([TORRENT_ENABLE_WERROR], [ AC_ARG_ENABLE(werror, - [ --enable-werror enable the -Werror flag [[default=no]]], + [ --enable-werror enable the -Werror and -Wall flag [[default=no]]], [ if test "$enableval" = "yes"; then - CXXFLAGS="$CXXFLAGS -Werror" + CXXFLAGS="$CXXFLAGS -Werror -Wall" fi ]) ])