[libc-commits] [libc] 8906bff - [libc][complex] Silence `pedantic` warning (#112239)
via libc-commits
libc-commits at lists.llvm.org
Mon Oct 14 11:11:05 PDT 2024
Author: Shourya Goel
Date: 2024-10-14T14:11:01-04:00
New Revision: 8906bff5ab3f09f4fe0dd052505b2b58b01ed524
URL: https://github.com/llvm/llvm-project/commit/8906bff5ab3f09f4fe0dd052505b2b58b01ed524
DIFF: https://github.com/llvm/llvm-project/commit/8906bff5ab3f09f4fe0dd052505b2b58b01ed524.diff
LOG: [libc][complex] Silence `pedantic` warning (#112239)
Fix buildbot errors due to #111659
Added:
Modified:
libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
Removed:
################################################################################
diff --git a/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake b/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
index 7af67e629471cb..e3a111c62cdb71 100644
--- a/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
+++ b/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
@@ -154,6 +154,7 @@ function(_get_common_compile_options output_var flags)
list(APPEND compile_options "-Wno-sign-conversion")
# Silence this warning because _Complex is a part of C99.
list(APPEND compile_options "-Wno-c99-extensions")
+ list(APPEND compile_options "-Wno-pedantic")
list(APPEND compile_options "-Wimplicit-fallthrough")
list(APPEND compile_options "-Wwrite-strings")
list(APPEND compile_options "-Wextra-semi")
@@ -231,6 +232,7 @@ function(_get_common_test_compile_options output_var c_test flags)
# list(APPEND compile_options "-Wextra-semi")
# Silence this warning because _Complex is a part of C99.
list(APPEND compile_options "-Wno-c99-extensions")
+ list(APPEND compile_options "-Wno-pedantic")
# if(NOT CMAKE_COMPILER_IS_GNUCXX)
# list(APPEND compile_options "-Wnewline-eof")
# list(APPEND compile_options "-Wnonportable-system-include-path")
More information about the libc-commits
mailing list