Fix unused variable warnings

This commit is contained in:
Maarten Bent
2022-04-10 00:36:47 +02:00
parent 13a82b3d67
commit 87465898f3
2 changed files with 3 additions and 1 deletions

View File

@@ -386,6 +386,9 @@ MyCanvas::MyCanvas( wxWindow *parent, wxWindowID id,
//
// my_png_from_mem = wxBitmap::NewFromPNGData(cursor_png, WXSIZEOF(cursor_png));
my_png_from_mem = wxBITMAP_PNG_FROM_DATA(cursor);
// prevent -Wunused-const-variable when compiler fails to detect its usage
wxUnusedVar(cursor_png);
}
MyCanvas::~MyCanvas()