Fix for issue 192.

This commit is contained in:
Mikko Mononen 2012-03-10 20:53:04 +00:00
parent f6c8d9c780
commit db0baf4741
3 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@
#ifdef NDEBUG
// From http://cnicholson.net/2009/02/stupid-c-tricks-adventures-in-assert/
# define dtAssert(x) do { (void)sizeof(x); } while(__LINE__==-1,false)
# define dtAssert(x) do { (void)sizeof(x); } while((void)(__LINE__==-1),false)
#else
# include <assert.h>
# define dtAssert assert

View File

@ -24,7 +24,7 @@
#ifdef NDEBUG
// From http://cnicholson.net/2009/02/stupid-c-tricks-adventures-in-assert/
# define rcAssert(x) do { (void)sizeof(x); } while(__LINE__==-1,false)
# define rcAssert(x) do { (void)sizeof(x); } while((void)(__LINE__==-1),false)
#else
# include <assert.h>
# define rcAssert assert

View File

@ -595,6 +595,7 @@
INSTALL_PATH = "$(HOME)/Applications";
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CPLUSPLUSFLAGS = (
"-Wunused-value",
"$(OTHER_CFLAGS)",
"-Wshadow",
"-Wreorder",
@ -623,6 +624,7 @@
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = "";
OTHER_CPLUSPLUSFLAGS = (
"-Wunused-value",
"$(OTHER_CFLAGS)",
"-Wshadow",
"-Wreorder",