diff --git a/runtimes/cmake/Modules/WarningFlags.cmake b/runtimes/cmake/Modules/WarningFlags.cmake index 068d22150d3875..90edf3a9574380 100644 --- a/runtimes/cmake/Modules/WarningFlags.cmake +++ b/runtimes/cmake/Modules/WarningFlags.cmake @@ -23,6 +23,7 @@ function(cxx_add_warning_flags target enable_werror enable_pedantic) -Wundef -Wunused-template -Wformat-nonliteral + -Wzero-length-array ) if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")