Strange (void)io; in example_glfw_opengl3 #4733
AntMaster7
started this conversation in
New Users Build/Link/Run issues ONLY!
Replies: 1 comment
-
This is in order to avoid a “unused variable” warning while conveniently allowing to uncomment the config lines below.
We should use a IM_UNUSED() macro to make this more obvious.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed the somewhat strange statement
(void)io;
in line 67 here. Casting something to void might have its reasons. But in the given case, the value is not assigned anywhere. Does this statement have a reason or is just some leftover?Beta Was this translation helpful? Give feedback.
All reactions