Strange (void)io; in example_glfw_opengl3 #4733
AntMaster7
started this conversation in
Build/Link/Run/Fonts 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
-
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