Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -491,7 +491,7 @@ inline void wxWindowMSW::SetTransparent(bool WXUNUSED(t)) { }
|
||||
|
||||
// kbd code translation
|
||||
WXDLLEXPORT int wxCharCodeMSWToWX(int keySym, WXLPARAM lParam = 0);
|
||||
WXDLLEXPORT int wxCharCodeWXToMSW(int id, bool *IsVirtual);
|
||||
WXDLLEXPORT WXWORD wxCharCodeWXToMSW(int id, bool *IsVirtual);
|
||||
|
||||
// window creation helper class: before creating a new HWND, instantiate an
|
||||
// object of this class on stack - this allows to process the messages sent to
|
||||
|
@@ -39,19 +39,27 @@
|
||||
still force a semicolon after the macro
|
||||
*/
|
||||
|
||||
#ifdef __WATCOMC__
|
||||
#define wxPRE_NO_WARNING_SCOPE for(int i=0;i<1;i++)
|
||||
#define wxPOST_NO_WARNING_SCOPE
|
||||
#else
|
||||
#define wxPRE_NO_WARNING_SCOPE do
|
||||
#define wxPOST_NO_WARNING_SCOPE while ( 0 )
|
||||
#endif
|
||||
|
||||
#define wxCHECKED_DELETE(ptr) \
|
||||
do \
|
||||
wxPRE_NO_WARNING_SCOPE \
|
||||
{ \
|
||||
typedef char complete[sizeof(*ptr)]; \
|
||||
delete ptr; \
|
||||
} while ( 0 )
|
||||
} wxPOST_NO_WARNING_SCOPE
|
||||
|
||||
#define wxCHECKED_DELETE_ARRAY(ptr) \
|
||||
do \
|
||||
wxPRE_NO_WARNING_SCOPE \
|
||||
{ \
|
||||
typedef char complete[sizeof(*ptr)]; \
|
||||
delete [] ptr; \
|
||||
} while ( 0 )
|
||||
} wxPOST_NO_WARNING_SCOPE
|
||||
|
||||
/* These scoped pointers are *not* assignable and cannot be used
|
||||
within a container. Look for wxDECLARE_SHARED_PTR for this
|
||||
|
Reference in New Issue
Block a user