From 2396a0f8596ca3bf5420b199099daf6b6a7e3eb3 Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 26 Mar 2026 03:47:30 +0000 Subject: [PATCH] $<$:-Werror=missing-declarations> --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ec1e97a3f9..a5c99c623a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -177,6 +177,9 @@ else() $<$:-Wno-invalid-offsetof> $<$:-Wno-unused-parameter> $<$:-Wno-missing-field-initializers>) + if (NOT IOS) + add_compile_options($<$:-Werror=missing-declarations>) + endif() if (CXX_CLANG OR CXX_ICC OR CXX_APPLE) # Clang, AppleClang, or Intel C++ if (NOT MSVC)