Skip to content

minicoro: suppress the MSVC padding warning for _mco_fiber - #1297

Open
Quchaosheng wants to merge 1 commit into
BehaviorTree:masterfrom
Quchaosheng:fix/1292-minicoro-c4324
Open

Quchaosheng wants to merge 1 commit into
BehaviorTree:masterfrom
Quchaosheng:fix/1292-minicoro-c4324

Conversation

@Quchaosheng

Copy link
Copy Markdown
Contributor

MSVC with /W4 /WX reports C4324 for _mco_fiber because the CONTEXT field forces alignment padding. The layout is intentional (it mirrors the Win32 fiber layout), so suppress the warning around this struct only, and restore it afterwards.

Fixes #1292.

C4324 is raised because the reverse-engineered CONTEXT field forces padding; the layout is intentional and the warning is not actionable. Keep it scoped to the struct.

This branch has not been deployed

No deployments
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.

C4324 in minicoro.h

1 participant