From 394de68b744f6332d70d721f315c6bd83a0581b4 Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Sat, 30 May 2009 23:10:15 -0400 Subject: [PATCH] fixed include of stdlib.h, and incressed the warning level --- Makefile | 2 +- src/debug.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.10.2