From: Patrik Gornicz Date: Sun, 31 May 2009 03:10:15 +0000 (-0400) Subject: fixed include of stdlib.h, and incressed the warning level X-Git-Tag: libbear-premerge~77 X-Git-Url: http://gitweb.pgornicz.com/?a=commitdiff_plain;h=394de68b744f6332d70d721f315c6bd83a0581b4;p=libbear.git fixed include of stdlib.h, and incressed the warning level --- diff --git a/Makefile b/Makefile index 2e5e5cf..5361ec7 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ OPTFLAGS := -O2 DBGFLAGS := -ggdb PRFFLAGS := ${DBGFLAGS} -pg LIBFLAGS := -fPIC -MYFLAGS := -Wall -pedantic -ansi +MYFLAGS := -Wall -Wextra -pedantic -ansi INCFLAGS := $(addprefix -I, ${INCDIRS}) LNKFLAGS := -shared -Wl,-soname,${SONAME} diff --git a/src/debug.cpp b/src/debug.cpp index ffdfa47..57921a3 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -24,6 +24,7 @@ using std::endl; #include #include +#include #include "Lock.h" #include "Autolock.h" @@ -75,6 +76,8 @@ void bear::DPF(int iLevel, const char* pstr) { Autolock lock(&muDPF); + (void)iLevel; + cout << pstr << endl; }