summaryrefslogtreecommitdiff
path: root/runtimes
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@mozilla.com>2024-10-04 09:52:35 +0000
committerGitHub <noreply@github.com>2024-10-04 09:52:35 +0000
commit60f3e67dae90f43698ae67167d0e024ff2ab0932 (patch)
tree4624134be7224cfc6bf08ad97bcdcd28a3dd9082 /runtimes
parentf6f4c177ef03ecd027d884af2cd3caf3ccafcfd1 (diff)
[libc++] Activate -Warray-zero when building (#110812)
Diffstat (limited to 'runtimes')
-rw-r--r--runtimes/cmake/Modules/WarningFlags.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtimes/cmake/Modules/WarningFlags.cmake b/runtimes/cmake/Modules/WarningFlags.cmake
index 068d22150d38..90edf3a95743 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")