Fix some GCC 3.2 -O2 warnings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9ce8d6a2b0
commit
02a48e3b0a
@ -126,8 +126,7 @@ public:
|
||||
|
||||
wxVectorBase& operator = (const wxVectorBase& vb)
|
||||
{
|
||||
bool rc = copy(vb);
|
||||
wxASSERT(rc);
|
||||
wxCHECK(copy(vb), *this);
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
@ -146,8 +145,7 @@ public:\
|
||||
cls() {}\
|
||||
cls(const cls& c)\
|
||||
{\
|
||||
bool rc = copy(c);\
|
||||
wxASSERT(rc);\
|
||||
wxCHECK2(copy(c), return);\
|
||||
}\
|
||||
~cls()\
|
||||
{\
|
||||
@ -161,8 +159,7 @@ class exp cls : public wxVectorBase\
|
||||
public:\
|
||||
void push_back(const obj& o)\
|
||||
{\
|
||||
bool rc = Alloc(size() + 1);\
|
||||
wxASSERT(rc);\
|
||||
wxCHECK2(Alloc(size() + 1), return);\
|
||||
Append(new obj(o));\
|
||||
};\
|
||||
void pop_back()\
|
||||
|
@ -285,7 +285,7 @@ bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event)
|
||||
{
|
||||
// the generic version is unused in wxMSW
|
||||
#ifndef __WIN32__
|
||||
wxChar ch;
|
||||
wxChar ch = 0;
|
||||
int keycode = event.GetKeyCode();
|
||||
switch ( keycode )
|
||||
{
|
||||
|
@ -151,9 +151,11 @@ void wxFileSelOk(Widget WXUNUSED(fs), XtPointer WXUNUSED(client_data), XmFileSel
|
||||
|
||||
static wxString ParseWildCard( const wxString& wild )
|
||||
{
|
||||
#ifdef __WXDEBUG__
|
||||
static const wxChar* msg =
|
||||
_T("Motif file dialog does not understand this ")
|
||||
_T("wildcard syntax");
|
||||
#endif
|
||||
|
||||
wxStringTokenizer tok( wild, _T("|") );
|
||||
|
||||
|
@ -183,7 +183,7 @@ bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id,
|
||||
ArrowDirection d,
|
||||
const wxPoint& pos, const wxSize& size )
|
||||
{
|
||||
int arrow_dir;
|
||||
int arrow_dir = XmARROW_UP;
|
||||
|
||||
switch( d )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user