mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
clang 13+ gives wrong -Wunused-but-set-variable error on nfa/mcclellancompile.cpp about total_daddy variable, disabling
This commit is contained in:
parent
a4972aa191
commit
911a98d54f
@ -1,4 +1,5 @@
|
|||||||
cmake_minimum_required (VERSION 2.8.11)
|
cmake_minimum_required (VERSION 2.8.12)
|
||||||
|
|
||||||
project (vectorscan C CXX)
|
project (vectorscan C CXX)
|
||||||
|
|
||||||
set (HS_MAJOR_VERSION 5)
|
set (HS_MAJOR_VERSION 5)
|
||||||
@ -296,6 +297,12 @@ if (NOT RELEASE_BUILD)
|
|||||||
# release builds
|
# release builds
|
||||||
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Werror")
|
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Werror")
|
||||||
set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} -Werror")
|
set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} -Werror")
|
||||||
|
if (CMAKE_COMPILER_IS_CLANG)
|
||||||
|
if (CMAKE_C_COMPILER_VERSION VERSION_GREATER "13.0")
|
||||||
|
set(EXTRA_C_FLAGS "${EXTRA_C_FLAGS} -Wno-unused-but-set-variable")
|
||||||
|
set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} -Wno-unused-but-set-variable")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (DISABLE_ASSERTS)
|
if (DISABLE_ASSERTS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user