Suppress the warnings on BGClang.

This commit is contained in:
Ye Luo 2017-05-24 10:16:46 -05:00
parent 8051b45682
commit 5c027b652c
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
set(CMAKE_C_COMPILER mpiclang)
set(CMAKE_CXX_COMPILER mpiclang++11)
set(GNU_OPTS "-O3 -g -ffast-math -fopenmp -fstrict-aliasing -Wno-deprecated -Wno-unused-value -Wno-type-safety")
set(GNU_OPTS "-O3 -g -ffast-math -fopenmp -fstrict-aliasing -Wno-deprecated -Wno-unused-value -Wno-type-safety -Wno-undefined-var-template")
set(GNU_FLAGS "-Drestrict=__restrict__ -DADD_ -DHAVE_MASS -DHAVE_MASSV -DSPLINEFLOAT -DBGQPX -D__forceinline=inline")
set(CMAKE_CXX_FLAGS "${GNU_FLAGS} ${GNU_OPTS} -ftemplate-depth-60")
set(CMAKE_C_FLAGS "${GNU_FLAGS} ${GNU_OPTS} -std=c99" )