warning about wxBorder {anonymous}

Post here wxCrafter related issues / features / bugs
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

warning about wxBorder {anonymous}

Post 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 ...... ?

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: warning about wxBorder {anonymous}

Post 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.

coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: warning about wxBorder {anonymous}

Post 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 :|

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

Post Reply