[Flang] Fix for CI failure, Remove default case
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Fri, 13 Aug 2021 17:05:35 +0000 (18:05 +0100)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Fri, 13 Aug 2021 17:06:33 +0000 (18:06 +0100)
Remove default case when all the enum values are covered in switch
statements.

flang/lib/Semantics/check-omp-structure.cpp

index a5eefe2..366a650 100644 (file)
@@ -981,8 +981,6 @@ void OmpStructureChecker::CheckCancellationNest(
         eligibleCancellation = true;
       }
       break;
-    default:
-      break;
     }
     if (!eligibleCancellation) {
       context_.Say(source,
@@ -1028,8 +1026,6 @@ void OmpStructureChecker::CheckCancellationNest(
           parser::ToUpperCaseLetters(
               parser::OmpCancelType::EnumToString(type)));
       break;
-    default:
-      break;
     }
   }
 }