]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/checkeddelete.h
support retina display
[wxWidgets.git] / include / wx / checkeddelete.h
index a03d7454d62d126e63d544b8815e8826909d32b9..d77abd7cce9b6248d13dcf2184d1b4d64f33a5a0 100644 (file)
 
 #define wxCHECKED_DELETE(ptr)                                                 \
     wxSTATEMENT_MACRO_BEGIN                                                   \
-        typedef char complete[sizeof(*ptr)];                                  \
+        typedef char complete[sizeof(*ptr)] WX_ATTRIBUTE_UNUSED;              \
         delete ptr;                                                           \
     wxSTATEMENT_MACRO_END
 
 #define wxCHECKED_DELETE_ARRAY(ptr)                                           \
     wxSTATEMENT_MACRO_BEGIN                                                   \
-        typedef char complete[sizeof(*ptr)];                                  \
+        typedef char complete[sizeof(*ptr)] WX_ATTRIBUTE_UNUSED;              \
         delete [] ptr;                                                        \
     wxSTATEMENT_MACRO_END