Skip to content

Commit 5024cb3

Browse files
authored
Merge pull request #1130 from flang-compiler/ps-no-warn-uninit
[flang] Fix build failures caused by bogus GNU C++ warnings
2 parents f6db41a + ad3e635 commit 5024cb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ if (FLANG_ENABLE_WERROR)
328328
if ( LLVM_COMPILER_IS_GCC_COMPATIBLE )
329329
append("-Werror" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
330330
append("-Wno-error" CMAKE_REQUIRED_FLAGS)
331+
append("-Wno-maybe-uninitialized" CMAKE_CXX_FLAGS)
331332
endif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
332333
if (NOT LLVM_ENABLE_WERROR)
333334
message(WARNING "FLANG_ENABLE_WERROR setting is different from LLVM_ENABLE_WERROR.")

0 commit comments

Comments
 (0)