avoid use of -Wno-variadic-macros, which causes an error with gcc 3.

This commit is contained in:
Sears Russell 2010-01-20 23:51:54 +00:00
parent b1f7d1947a
commit f1f1d888e4
3 changed files with 7 additions and 1 deletions

View file

@ -134,7 +134,7 @@ LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/src/stasis)
IF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
SET(COMMON_LIBRARIES stasis m pthread stdc++)
SET(CMAKE_C_FLAGS "-g -Wall -pedantic -std=gnu99 -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_C_FLAGS}")
SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-variadic-macros -Wno-long-long -pedantic -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_CXX_FLAGS}")
SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-long-long -pedantic -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_CXX_FLAGS}")
ELSEIF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "SunPro" )
SET(COMMON_LIBRARIES stasis m pthread Crun Cstd)
SET(CMAKE_C_FLAGS "-g -xc99=all -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_C_FLAGS}")

View file

@ -122,6 +122,10 @@ typedef int16_t pagetype_t;
/*#define PROFILE_LATCHES*/
/*#define NO_LATCHES */
// ICK: Only way to portably shut up GCC warnings about variadic macros
#pragma GCC system_header
#ifdef DEBUGGING
/** @todo Files that use DEBUG have to pull in stdio.h, which is a pain! */
#define DEBUG(...) \

View file

@ -43,6 +43,8 @@ namespace rose {
class PluginDispatcher{
public:
// Silence GCC variadic macro warnings...
#pragma GCC system_header
#define dispatchSwitch(col,cases,...) \
static const int base = USER_DEFINED_PAGE(0) + 3 * 2 * 4;\