[flang-commits] [flang] [flang][driver] -Werror promotes warnings to error and interopts with -Wfatal-errors (PR #148748)
Andre Kuhlenschmidt via flang-commits
flang-commits at lists.llvm.org
Tue Jul 15 09:59:43 PDT 2025
================
@@ -56,13 +56,19 @@ class MessageFixedText {
CharBlock text() const { return text_; }
bool empty() const { return text_.empty(); }
- Severity severity() const { return severity_; }
+ Severity severity(bool warningsAreErrors = false) const {
+ if (warningsAreErrors) {
----------------
akuhlens wrote:
That is how the original code worked (which I didn't implement). I was essentially trying to reproduce the previous behavior only taking into account the new flag `-Wfatal-errros`. I am happy to revisit how the `-Werror` flags works, maybe in a different PR.
https://github.com/llvm/llvm-project/pull/148748
More information about the flang-commits
mailing list