Page 1 of 1

warning about wxBorder {anonymous}

Posted: Thu Sep 07, 2023 8:29 pm
by coder99

When building my projects with the current wxCrafter plugin 17.0.0
I keep getting this:
warning: 'wxBorder {anonymous}::get_border_simple_theme_aware_bit()' defined but not used [-Wunused-function]

Do I need to modify my projects to ignore unused functions, or ...... ?


Re: warning about wxBorder {anonymous}

Posted: Fri Sep 08, 2023 1:16 pm
by DavidGH

Do I need to modify my projects to ignore unused functions, or ...... ?

You don't need to do anything. A warning is just that; it's not an error and it won't break compilation.

If you want to stop the warnings, ${your favourite search engine} will suggest adding

Code: Select all

-Wno-unused-variable

to your compiler settings.


Re: warning about wxBorder {anonymous}

Posted: Fri Sep 08, 2023 6:04 pm
by coder99

Understood, though I would prefer to fix such an issue (or ask to have it fixed) rather than ignoring it wholesale, if only to avoid missing other issues :|