ThinBridge / Chronos

Chromiumベースの業務ブラウザ
Other
5 stars 3 forks source link

Suppress warning C26819 #171

Closed HashidaTKS closed 3 months ago

HashidaTKS commented 3 months ago

Which issue(s) this PR fixes:

https://github.com/ThinBridge/Chronos/issues/42

What this PR does / why we need it:

The fallthrough at this line is intended, no need to warn. So having added a [[fallthrough]]; statement to avoid warning C26819.

https://learn.microsoft.com/en-us/cpp/code-quality/c26819?view=msvc-170

How to verify the fixed issue:

Describe the following information to help that the tester able to do it.

The steps to verify:

The warning is suppressed

  1. Execute Code Analysis

Regression test

  1. Start Chronos
  2. Open multiple tabs
  3. Move a tab by mouse

Expected result:

The warning is suppressed

The warning C26819 is suppressed, the warning is not displayed.

Regression test

The tab moves fine.

kenhys commented 3 months ago

:eyes: