Skip to content

Commit

Permalink
Reduce clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Oct 20, 2024
1 parent 58b0a13 commit 10f2b4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ set(CMAKE_DEBUG_POSTFIX "-dbg")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wno-unused-function")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-function")

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-vla-cxx-extension")
endif()

if(BUILD_PYTHON_MODULE)
# Build PIC code to be used for swig/python module
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Expand Down

0 comments on commit 10f2b4e

Please sign in to comment.