X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcf924a345ea8ffbc1cf6b40b5f75c6005e504c0..6001e347baf63a91be525f3b9beeefde4bc16f19:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 020bd9be8b..a63fa77a05 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -76,7 +76,11 @@ typedef unsigned char size_t8; public: IntSizeChecker() { - wxASSERT_MSG( sizeof(int) == 4, + // Asserting a sizeof directly causes some compilers to + // issue a "using constant in a conditional expression" warning + size_t intsize = sizeof(int); + + wxASSERT_MSG( intsize == 4, "size_t32 is incorrectly defined!" ); } } intsizechecker;