Skip to content

Commit

Permalink
[libc][complex] Silence pedantic warning (llvm#112239)
Browse files Browse the repository at this point in the history
Fix buildbot errors due to llvm#111659
  • Loading branch information
Sh0g0-1758 authored Oct 14, 2024
1 parent 53c9553 commit 8906bff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 8906bff

Please sign in to comment.