Skip to content

Adjust a few macros for MSVC-compatibility#1411

Merged
nilfm99 merged 2 commits intoNetflix:masterfrom
sethk:sethk_msvc_macros
Feb 12, 2025
Merged

Adjust a few macros for MSVC-compatibility#1411
nilfm99 merged 2 commits intoNetflix:masterfrom
sethk:sethk_msvc_macros

Conversation

@sethk
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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