Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust a few macros for MSVC-compatibility #1411

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

sethk
Copy link
Contributor

@sethk sethk commented Feb 12, 2025

No description provided.

MSVC doesn't have an equivalent for __attribute__((unused)) on
functions.
Under MSVC, '__forceinline' implies 'inline', yielding some warnings
when they are used together. In several other codebases I happened to
have lying around, a macro similar to FORCE_INLINE always includes the
'inline' keyword, probably for the same reason.
Copy link
Collaborator

@nilfm99 nilfm99 left a comment

Choose a reason for hiding this comment

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

thanks for the contributions!

@nilfm99 nilfm99 merged commit 3ece4d4 into Netflix:master Feb 12, 2025
8 checks passed
@sethk
Copy link
Contributor Author

sethk commented Feb 12, 2025

@nilfm99 Thank you for reviewing my changes. I have a few more that I need to test more broadly before I submit them, but the result is that I've been able to get it compiling under MSVC again.

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