[flang-commits] [flang] [flang] Turn -Werror back off for Flang build (PR #175689)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Mon Jan 12 16:58:29 PST 2026
https://github.com/klausler created https://github.com/llvm/llvm-project/pull/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.)
>From 5e64b9bacc88e769d57e236d2a5d96a165874ddb Mon Sep 17 00:00:00 2001
From: Peter Klausler <pklausler at nvidia.com>
Date: Mon, 12 Jan 2026 16:56:09 -0800
Subject: [PATCH] [flang] Turn -Werror back off for Flang build
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.)
---
flang/CMakeLists.txt | 2 +-
flang/include/flang/Semantics/expression.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
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