Skip to content

<xloctime>: Silence CodeQL warning SM03231 about leap years, again - #5711

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
StephanTLavavej:a-silence-like-the-depths
Sep 5, 2025
Merged

<xloctime>: Silence CodeQL warning SM03231 about leap years, again#5711
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
StephanTLavavej:a-silence-like-the-depths

Conversation

@StephanTLavavej

Copy link
Copy Markdown
Member

Followup to #5625. Fixes internal VSO-2566953.

Previously, I silenced "Year field changed using an arithmetic operation without checking for leap year" for all of the locations that were performing arithmetic. Now we've got a new round of warnings, same opaque ID SM03231 but a different message "Field tm_year on variable _Pt has been modified, but no appropriate check for LeapYear was found", so we need to suppress every line modifying tm_year.

Once again it's time to quote:

"I remember that we cleared this world out. We won. Is a future coming in which we will, eventually, truly, have won?"

- Ra (Abstract Weapon) by qntm

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) moved this from Final Review to Ready To Merge in STL Code Reviews Sep 4, 2025
@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 821cc9c into microsoft:main Sep 5, 2025
39 checks passed
@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) deleted the a-silence-like-the-depths branch September 5, 2025 01:46
@github-project-automation github-project-automation Bot moved this from Ready To Merge to Done in STL Code Reviews Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Something can be improved

2 participants