silence compiler warning
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@941 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
7bed4b67ba
commit
29555bd6f6
1 changed files with 4 additions and 4 deletions
|
@ -59,8 +59,8 @@ SET(CLIENT_LIBRARIES logstore_client)
|
||||||
|
|
||||||
IF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
|
IF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
|
||||||
SET(COMMON_LIBRARIES logstore stasis m pthread stdc++)
|
SET(COMMON_LIBRARIES logstore 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_C_FLAGS "-g -Wall -pedantic -std=gnu99 -Wno-variadic-macros -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_C_FLAGS}")
|
||||||
SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-long-long -pedantic -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_CXX_FLAGS}")
|
SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-long-long -pedantic -Wno-variadic-macros -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_CXX_FLAGS}")
|
||||||
ELSEIF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "SunPro" )
|
ELSEIF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "SunPro" )
|
||||||
SET(COMMON_LIBRARIES logstore stasis m pthread Crun Cstd)
|
SET(COMMON_LIBRARIES logstore stasis m pthread Crun Cstd)
|
||||||
SET(CMAKE_C_FLAGS "-g -xc99=all -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_C_FLAGS}")
|
SET(CMAKE_C_FLAGS "-g -xc99=all -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_C_FLAGS}")
|
||||||
|
@ -69,8 +69,8 @@ ELSE( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
|
||||||
# TODO: how to detect compilers correctly on old cmake??? This is a huge hack; it uses old gcc
|
# TODO: how to detect compilers correctly on old cmake??? This is a huge hack; it uses old gcc
|
||||||
# options, since cmake is old...
|
# options, since cmake is old...
|
||||||
SET(COMMON_LIBRARIES logstore stasis m pthread stdc++)
|
SET(COMMON_LIBRARIES logstore 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_C_FLAGS "-g -Wall -pedantic -std=gnu99 -Wno-variadic-macros -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_C_FLAGS}")
|
||||||
SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-long-long -pedantic -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_CXX_FLAGS}")
|
SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-long-long -pedantic -Wno-variadic-macros -DPBL_COMPAT -D_FILE_OFFSET_BITS=64 ${CMAKE_CXX_FLAGS}")
|
||||||
ENDIF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
|
ENDIF ( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" )
|
||||||
|
|
||||||
#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
||||||
|
|
Loading…
Reference in a new issue