From 10f2b4e9b77c2d55c04bd29304f9df6c23761278 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Sun, 20 Oct 2024 10:45:31 +0200 Subject: [PATCH] Reduce clang warnings --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 295591b3..ac3b5853 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)