Skip to content

Commit

Permalink
Disable variable-length array warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoMDomingues committed Jan 23, 2025
1 parent 2ce7692 commit 49bb172
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ option(ENABLE_LEGACY_API "ENABLE_LEGACY_API" OFF)
option(ENABLE_LIBATOMIC "ENABLE_LIBATOMIC" OFF)
option(ENABLE_ALLOCATOR_METRICS "Force enable the allocator metrics. It will be active by default in DEBUG" OFF)

set(ADDITIONAL_CXX_FLAGS, "")
set(ADDITIONAL_CXX_FLAGS,
"-Wno-vla-extension" # // disable variable-length arrays as they are not part of C++ standard
)

if (ENABLE_LEGACY_API)
set(ADDITIONAL_CXX_FLAGS "${ADDITIONAL_CXX_FLAGS} -DENABLE_LEGACY_API=1")
Expand Down

0 comments on commit 49bb172

Please sign in to comment.