[flang-commits] [flang] [flang][driver] -Werror promotes warnings to error and interopts with -Wfatal-errors (PR #148748)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Jul 15 09:33:44 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) {
----------------
klausler wrote:

This member function is now no longer an accessor.  Maybe leave the accessor alone and create a new member function EffectiveSeverity or something.

Are you sure that all severity levels other than Error are warnings?

https://github.com/llvm/llvm-project/pull/148748


More information about the flang-commits mailing list