raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.26k stars 280 forks source link

avoid unused parameter wanings #365

Closed LievenPetersen closed 6 months ago

LievenPetersen commented 6 months ago

I like to compile my code with -Werror, which is impossible due to the unused parameters in some functions.

I see that pr #344 already tried to remove them, which was a bit too extreme.

A better solution, that doesn't change anything, is to write (void) param; which avoids the compiler's warning.

This is only about personal preference, without any functional effect really. But it would be really nice to be able to compile with stricter warnings.

raysan5 commented 6 months ago

@LievenPetersen Personally I prefer to avoid that extra code just to silent some warnings. Also, some of those text variables could be used in the future.