mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Build: Enable VLA warnings
VLAs (variable-length arrays) are a C99 feature and were never standardised for C++. There are better alternatives in C++ (mainly std::vector). Enable the warnings so no new ones can be introduced.
This commit is contained in:
@@ -3,7 +3,8 @@ target_compile_options(zm-warning-interface
|
||||
-Wall
|
||||
-Wextra
|
||||
-Wimplicit-fallthrough
|
||||
-Wno-unused-parameter)
|
||||
-Wno-unused-parameter
|
||||
-Wvla)
|
||||
|
||||
if(ENABLE_WERROR)
|
||||
target_compile_options(zm-warning-interface
|
||||
|
||||
@@ -7,7 +7,8 @@ target_compile_options(zm-warning-interface
|
||||
-Wno-cast-function-type
|
||||
$<$<VERSION_LESS:$<CXX_COMPILER_VERSION>,11>:-Wno-clobbered>
|
||||
-Wno-unused-parameter
|
||||
-Woverloaded-virtual)
|
||||
-Woverloaded-virtual
|
||||
-Wvla)
|
||||
|
||||
if(ENABLE_WERROR)
|
||||
target_compile_options(zm-warning-interface
|
||||
|
||||
Reference in New Issue
Block a user