[PATCH] D85694: [flang] Disable -Wmaybe-uninitialized for GCC

Tim Keith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 07:20:42 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa9795b6f639f: [flang] Disable -Wmaybe-uninitialized for GCC (authored by tskeith).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85694/new/

https://reviews.llvm.org/D85694

Files:
  flang/CMakeLists.txt


Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ flang/CMakeLists.txt
@@ -64,6 +64,9 @@
   endif()
   option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON)
   option(LLVM_ENABLE_PEDANTIC "Compile with pedantic enabled." ON)
+  if(CMAKE_COMPILER_IS_GNUCXX)
+    set(USE_NO_MAYBE_UNINITIALIZED 1)
+  endif()
 
   include(CMakeParseArguments)
   include(AddLLVM)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85694.284709.patch
Type: text/x-patch
Size: 442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/ddce92fd/attachment.bin>


More information about the llvm-commits mailing list