Skip to content

Commit 6c3ae44

Browse files
[Flang] Fix for CI failure, Remove default case
Remove default case when all the enum values are covered in switch statements.
1 parent b071626 commit 6c3ae44

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,6 @@ void OmpStructureChecker::CheckCancellationNest(
981981
eligibleCancellation = true;
982982
}
983983
break;
984-
default:
985-
break;
986984
}
987985
if (!eligibleCancellation) {
988986
context_.Say(source,
@@ -1028,8 +1026,6 @@ void OmpStructureChecker::CheckCancellationNest(
10281026
parser::ToUpperCaseLetters(
10291027
parser::OmpCancelType::EnumToString(type)));
10301028
break;
1031-
default:
1032-
break;
10331029
}
10341030
}
10351031
}

0 commit comments

Comments
 (0)