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::NewFromPNGData(cursor_png, WXSIZEOF(cursor_png));
my_png_from_mem = wxBITMAP_PNG_FROM_DATA(cursor); 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() MyCanvas::~MyCanvas()

View File

@@ -122,7 +122,6 @@ public:
private: private:
PokeAdviseClient *m_client; PokeAdviseClient *m_client;
PokeAdviseConn *m_conn; PokeAdviseConn *m_conn;
bool m_initDone;
wxDECLARE_NO_COPY_CLASS(PokeAdvisePersistentConnection); wxDECLARE_NO_COPY_CLASS(PokeAdvisePersistentConnection);
}; };