[flang-commits] [flang] 1b69dfe - [flang] Turn -Werror back off for Flang build (#175689)
via flang-commits
flang-commits at lists.llvm.org
Mon Jan 12 17:02:58 PST 2026
Author: Peter Klausler
Date: 2026-01-12T17:02:53-08:00
New Revision: 1b69dfeaf88106340937c9950f758792259a9fc4
URL: https://github.com/llvm/llvm-project/commit/1b69dfeaf88106340937c9950f758792259a9fc4
DIFF: https://github.com/llvm/llvm-project/commit/1b69dfeaf88106340937c9950f758792259a9fc4.diff
LOG: [flang] Turn -Werror back off for Flang build (#175689)
Different build environments are picking up warnings that my testing
didn't expose; turn -Werror back off.
(And also delete an unused data member that was triggering some MSVC
warnings.)
Added:
Modified:
flang/CMakeLists.txt
flang/include/flang/Semantics/expression.h
Removed:
################################################################################
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index 390cfe749f962..c01eb56d5e496 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -37,7 +37,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE)
`CMakeFiles'. Please delete them.")
endif()
-option(FLANG_ENABLE_WERROR "Fail and stop building flang if a warning is triggered." ON)
+option(FLANG_ENABLE_WERROR "Fail and stop building flang if a warning is triggered." OFF)
# Check for a standalone build and configure as appropriate from
# there.
diff --git a/flang/include/flang/Semantics/expression.h b/flang/include/flang/Semantics/expression.h
index 3392b797c311e..50f75b2304d95 100644
--- a/flang/include/flang/Semantics/expression.h
+++ b/flang/include/flang/Semantics/expression.h
@@ -429,7 +429,6 @@ class ExpressionAnalyzer {
bool inDataStmtConstant_{false};
bool inStmtFunctionDefinition_{false};
bool iterativelyAnalyzingSubexpressions_{false};
- bool inDeadCode_{false};
friend class ArgumentAnalyzer;
};
More information about the flang-commits
mailing list