[Analyzers][CPP]Turn on warning 26819 (#22796)

This commit is contained in:
sosssego 2022-12-18 15:58:30 +00:00 committed by GitHub
parent 3cdac58070
commit 5fd7e2f7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,7 @@
<Rule Id="C26816" Action="Info" />
<Rule Id="C26817" Action="Info" />
<Rule Id="C26818" Action="Info" />
<Rule Id="C26819" Action="Info" />
<Rule Id="C26819" Action="Error" />
<Rule Id="C26820" Action="Error" />
<Rule Id="C26826" Action="Info" />
<Rule Id="C26827" Action="Error" />

View File

@ -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;

View File

@ -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);