Skip to content

Commit

Permalink
tests: restore VLA warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskij authored and John Wellbelove committed Aug 6, 2024
1 parent b6d5eb9 commit 1c7b208
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 3.5.0)
project(etl_unit_tests LANGUAGES CXX)

include(CheckCXXCompilerFlag)

#include(FetchContent)
#FetchContent_Declare(
# googletest
Expand Down Expand Up @@ -415,11 +413,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
)
endif ()

check_cxx_compiler_flag(-Wvla-cxx-extension HAS_VLA_CXX_EXT)
if(${HAS_VLA_CXX_EXT})
target_compile_options(etl_tests PRIVATE -Wno-vla-cxx-extension)
endif ()

if ((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
if (ETL_ENABLE_SANITIZER MATCHES "ON")
message(STATUS "Compiling with Sanitizer enabled")
Expand Down

0 comments on commit 1c7b208

Please sign in to comment.