Fix warning on unhandled enumeration value
authorSerge Pavlov <sepavloff@gmail.com>
Fri, 1 Jul 2022 08:17:04 +0000 (15:17 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Fri, 1 Jul 2022 08:17:29 +0000 (15:17 +0700)
clang/lib/AST/StmtPrinter.cpp

index f2aa8fb..983fd39 100644 (file)
@@ -198,6 +198,8 @@ void StmtPrinter::PrintFPPragmas(CompoundStmt *S) {
     if (!FEnvAccess || EM != LangOptions::FPE_Strict) {
       Indent() << "#pragma clang fp exceptions(";
       switch (FPO.getSpecifiedExceptionModeOverride()) {
+      default:
+        break;
       case LangOptions::FPE_Ignore:
         OS << "ignore";
         break;