Skip to content

Comments

chore: enable more SDL flags#53

Merged
deepak1556 merged 1 commit intomainfrom
rzhao271/binskim-2025
Nov 13, 2025
Merged

chore: enable more SDL flags#53
deepak1556 merged 1 commit intomainfrom
rzhao271/binskim-2025

Conversation

@rzhao271
Copy link
Collaborator

Enables more flags in accordance with this year's SDL assessment.

@rzhao271 rzhao271 requested a review from deepak1556 November 11, 2025 23:34
@rzhao271 rzhao271 self-assigned this Nov 11, 2025
@rzhao271 rzhao271 added this to the November 2025 milestone Nov 11, 2025
} else if constexpr (level == spdlog::level::level_enum::debug) {
logger_->debug(message);
} else if constexpr (level == spdlog::level::level_enum::trace) {
logger_->trace(message);
Copy link
Contributor

Choose a reason for hiding this comment

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

Whats the reason for this change ? We still need to initialize the instance method for each of the enum type so there would be no difference between the two approaches https://godbolt.org/z/5xschjrx9

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was to resolve warning C6326. Let me know if there's another approach I can take.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay msvc doesn't optimize for this code https://godbolt.org/z/c84G1E6jb, that's good to know.

@deepak1556 deepak1556 merged commit a435ad6 into main Nov 13, 2025
12 checks passed
@deepak1556 deepak1556 deleted the rzhao271/binskim-2025 branch November 13, 2025 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants