[flang-commits] [flang] 224581c - [flang] Fix a warning

Kazu Hirata via flang-commits flang-commits at lists.llvm.org
Thu May 30 13:19:09 PDT 2024


Author: Kazu Hirata
Date: 2024-05-30T13:19:04-07:00
New Revision: 224581cf3c8b734d619e261ec4705106282ae3a8

URL: https://github.com/llvm/llvm-project/commit/224581cf3c8b734d619e261ec4705106282ae3a8
DIFF: https://github.com/llvm/llvm-project/commit/224581cf3c8b734d619e261ec4705106282ae3a8.diff

LOG: [flang] Fix a warning

This patch fixes:

  flang/lib/Semantics/check-do-forall.cpp:731:9: error: default label
  in switch which covers all enumeration values
  [-Werror,-Wcovered-switch-default]

Added: 
    

Modified: 
    flang/lib/Semantics/check-do-forall.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Semantics/check-do-forall.cpp b/flang/lib/Semantics/check-do-forall.cpp
index 9a5ffcf0d24b6..69f8fdafdfeee 100644
--- a/flang/lib/Semantics/check-do-forall.cpp
+++ b/flang/lib/Semantics/check-do-forall.cpp
@@ -728,9 +728,6 @@ class DoContext {
             typeMismatch("INTEGER");
           }
           break;
-        default:
-          supportedIdentifier = false;
-          break;
         }
       }
       if (!supportedIdentifier) {


        


More information about the flang-commits mailing list