avoid use of -Wno-variadic-macros, which causes an error with gcc 3.
This commit is contained in:
parent
b1f7d1947a
commit
f1f1d888e4
3 changed files with 7 additions and 1 deletions
|
@ -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}")
|
||||
|
|
|
@ -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(...) \
|
||||
|
|
|
@ -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;\
|
||||
|
|
Loading…
Reference in a new issue