Author: Serge Pavlov Date: 2022-07-01T15:17:29+07:00 New Revision: 0401fd12d4aa0553347fe34d666fb236d8719173
URL: https://github.com/llvm/llvm-project/commit/0401fd12d4aa0553347fe34d666fb236d8719173 DIFF: https://github.com/llvm/llvm-project/commit/0401fd12d4aa0553347fe34d666fb236d8719173.diff LOG: Fix warning on unhandled enumeration value Added: Modified: clang/lib/AST/StmtPrinter.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index f2aa8fb2659d..983fd39874f0 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits