[flang-commits] [flang] 357e99a - Disable -Wctad-maybe-unsupported in flang since it already uses the feature a lot
David Blaikie via flang-commits
flang-commits at lists.llvm.org
Tue Aug 16 10:48:45 PDT 2022
Author: David Blaikie
Date: 2022-08-16T17:42:45Z
New Revision: 357e99aff035e981f7d7fc566ffa785925594259
URL: https://github.com/llvm/llvm-project/commit/357e99aff035e981f7d7fc566ffa785925594259
DIFF: https://github.com/llvm/llvm-project/commit/357e99aff035e981f7d7fc566ffa785925594259.diff
LOG: Disable -Wctad-maybe-unsupported in flang since it already uses the feature a lot
Added:
Modified:
flang/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index 0b55bb34da09..a0bf269610ce 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -355,6 +355,10 @@ check_compiler_flag("-Wstring-conversion" CXX_SUPPORTS_NO_STRING_CONVERSION_FLAG
if (CXX_SUPPORTS_NO_STRING_CONVERSION_FLAG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-string-conversion")
endif()
+check_compiler_flag("-Wno-ctad-maybe-unsupported" CXX_SUPPORTS_NO_CTAD_MAYBE_UNSUPPORTED_FLAG)
+if (CXX_SUPPORTS_NO_CTAD_MAYBE_UNSUPPORTED_FLAG)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-ctad-maybe-unsupported")
+endif()
# Add appropriate flags for GCC
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
More information about the flang-commits
mailing list