diff --git a/samples/wxsocket/client.cpp b/samples/wxsocket/client.cpp index 9eec661f2f..c2daca304e 100644 --- a/samples/wxsocket/client.cpp +++ b/samples/wxsocket/client.cpp @@ -116,7 +116,7 @@ bool MyApp::OnInit(void) frame->SetMenuBar(menu_bar); // Make a panel with a message - txtctrl = new wxTextCtrl(this); + (void)new wxPanel(frame, 0, 0, 300, 100); // Show the frame frame->Show(TRUE);