Closed MacDada closed 5 months ago
This PR is marked as stale because it has been open 45 days with no activity. You can remove stale label or comment if this PR is still valid.
This PR is marked as stale because it has been open 45 days with no activity.
Well…
They appear when the code is compiled with a flag
Wextra
.I know of 3 possible solutions:
static_cast<void>(unusedParameter);
– the one I chose(void) unusedParameter;
– "old" C–style casting, butA
is more precise in C++unusedParameter
var from the function arguments – but keeping the name better explains what it is