[libc-commits] [libc] 5a13758 - Revert "[libc] Build with -Wshadow" (#197201)
via libc-commits
libc-commits at lists.llvm.org
Tue May 12 06:58:19 PDT 2026
Author: Nico Weber
Date: 2026-05-12T09:58:15-04:00
New Revision: 5a13758207cc0f1e02a0fe0ae492bb98e2d3d070
URL: https://github.com/llvm/llvm-project/commit/5a13758207cc0f1e02a0fe0ae492bb98e2d3d070
DIFF: https://github.com/llvm/llvm-project/commit/5a13758207cc0f1e02a0fe0ae492bb98e2d3d070.diff
LOG: Revert "[libc] Build with -Wshadow" (#197201)
Reverts llvm/llvm-project#196519
Passed CI on the PR, but apparently breaks several bots.
Added:
Modified:
libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
Removed:
################################################################################
diff --git a/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake b/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
index db541a4dfb985..2d3703eefa0ac 100644
--- a/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
+++ b/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
@@ -301,7 +301,6 @@ function(_get_common_compile_options output_var flags)
if(NOT CMAKE_COMPILER_IS_GNUCXX)
list(APPEND compile_options "-Wnewline-eof")
list(APPEND compile_options "-Wnonportable-system-include-path")
- list(APPEND compile_options "-Wshadow")
list(APPEND compile_options "-Wstrict-prototypes")
list(APPEND compile_options "-Wthread-safety")
list(APPEND compile_options "-Wglobal-constructors")
More information about the libc-commits
mailing list