Skip to content

Commit 3dd3fb0

Browse files
Sh0g0-1758DanielCChen
authored andcommitted
[libc][complex] Silence pedantic warning (llvm#112239)
Fix buildbot errors due to llvm#111659
1 parent a850cb3 commit 3dd3fb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/cmake/modules/LLVMLibCCompileOptionRules.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ function(_get_common_compile_options output_var flags)
154154
list(APPEND compile_options "-Wno-sign-conversion")
155155
# Silence this warning because _Complex is a part of C99.
156156
list(APPEND compile_options "-Wno-c99-extensions")
157+
list(APPEND compile_options "-Wno-pedantic")
157158
list(APPEND compile_options "-Wimplicit-fallthrough")
158159
list(APPEND compile_options "-Wwrite-strings")
159160
list(APPEND compile_options "-Wextra-semi")
@@ -231,6 +232,7 @@ function(_get_common_test_compile_options output_var c_test flags)
231232
# list(APPEND compile_options "-Wextra-semi")
232233
# Silence this warning because _Complex is a part of C99.
233234
list(APPEND compile_options "-Wno-c99-extensions")
235+
list(APPEND compile_options "-Wno-pedantic")
234236
# if(NOT CMAKE_COMPILER_IS_GNUCXX)
235237
# list(APPEND compile_options "-Wnewline-eof")
236238
# list(APPEND compile_options "-Wnonportable-system-include-path")

0 commit comments

Comments
 (0)