From 60f3e67dae90f43698ae67167d0e024ff2ab0932 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Fri, 4 Oct 2024 09:52:35 +0000 Subject: [PATCH] [libc++] Activate -Warray-zero when building (#110812) --- runtimes/cmake/Modules/WarningFlags.cmake | 1 + 1 file changed, 1 insertion(+) 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")