KEMBAR78
`<xloctime>`: Silence CodeQL warning SM03231 about leap years, again by StephanTLavavej · Pull Request #5711 · microsoft/STL · GitHub
Skip to content

Conversation

@StephanTLavavej
Copy link
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

@StephanTLavavej StephanTLavavej requested a review from a team as a code owner September 4, 2025 22:08
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Sep 4, 2025
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Sep 4, 2025
@StephanTLavavej StephanTLavavej moved this from Initial Review to Final Review in STL Code Reviews Sep 4, 2025
Copy link
Member

@MahmoudGSaleh MahmoudGSaleh left a comment

Choose a reason for hiding this comment

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

LGTM

@StephanTLavavej StephanTLavavej moved this from Final Review to Ready To Merge in STL Code Reviews Sep 4, 2025
@StephanTLavavej StephanTLavavej merged commit 821cc9c into microsoft:main Sep 5, 2025
39 checks passed
@StephanTLavavej 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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants