[clang] 0401fd1 - Fix warning on unhandled enumeration value
Serge Pavlov via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 1 01:19:23 PDT 2022
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;
More information about the cfe-commits
mailing list