From 5fd7e2f7e672a85301f8fff515a24833c40afcc2 Mon Sep 17 00:00:00 2001 From: sosssego Date: Sun, 18 Dec 2022 15:58:30 +0000 Subject: [PATCH] [Analyzers][CPP]Turn on warning 26819 (#22796) --- CppRuleSet.ruleset | 2 +- src/modules/colorPicker/ColorPicker/dllmain.cpp | 1 + src/runner/main.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CppRuleSet.ruleset b/CppRuleSet.ruleset index 8d9efe316b..211530994e 100644 --- a/CppRuleSet.ruleset +++ b/CppRuleSet.ruleset @@ -96,7 +96,7 @@ - + diff --git a/src/modules/colorPicker/ColorPicker/dllmain.cpp b/src/modules/colorPicker/ColorPicker/dllmain.cpp index 5a1a7cdb8c..4978d4d551 100644 --- a/src/modules/colorPicker/ColorPicker/dllmain.cpp +++ b/src/modules/colorPicker/ColorPicker/dllmain.cpp @@ -19,6 +19,7 @@ BOOL APIENTRY DllMain(HMODULE /*hModule*/, DWORD ul_reason_for_call, LPVOID /*lp { case DLL_PROCESS_ATTACH: Trace::RegisterProvider(); + [[fallthrough]]; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: break; diff --git a/src/runner/main.cpp b/src/runner/main.cpp index fa999959bb..a5493afced 100644 --- a/src/runner/main.cpp +++ b/src/runner/main.cpp @@ -389,6 +389,7 @@ int WINAPI WinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPSTR l case toast_notification_handler_result::exit_success: return 0; } + [[fallthrough]]; case SpecialMode::ReportSuccessfulUpdate: { notifications::remove_toasts_by_tag(notifications::UPDATING_PROCESS_TOAST_TAG);