Skip to content

Fix MSVC warning C4390#214

Merged
mdavidsaver merged 1 commit intoepics-base:masterfrom
dirk-zimoch:win_C4390
Nov 5, 2025
Merged

Fix MSVC warning C4390#214
mdavidsaver merged 1 commit intoepics-base:masterfrom
dirk-zimoch:win_C4390

Conversation

@dirk-zimoch
Copy link
Contributor

';' : empty controlled statement found; is this the intent?

In this case, it is indeed the intent.

@dirk-zimoch dirk-zimoch changed the title Fix warning MSVC C4390 Fix MSVC warning C4390 Nov 4, 2025
@@ -24,6 +24,9 @@
# define TRACE(msg) std::cerr<<"TRACE: "<<CURRENT_FUNCTION<<" : "<< msg <<"\n"
#else
# define TRACE(msg)
Copy link
Member

Choose a reason for hiding this comment

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

A less M$ solution would be:

#  define TRACE(msg) while(0){}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking of # define TRACE(msg) (void)0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have implemented your suggestion.

';' : empty controlled statement found; is this the intent?
@mdavidsaver mdavidsaver merged commit 95872d9 into epics-base:master Nov 5, 2025
20 of 25 checks passed
@dirk-zimoch dirk-zimoch deleted the win_C4390 branch November 6, 2025 07:19
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