X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b12da351c59ebfb7d375f4de6b4bc79a9825045..19fc1a2f0d8523e8d31b40e7b83a058faacc20c2:/include/wx/strvararg.h diff --git a/include/wx/strvararg.h b/include/wx/strvararg.h index db91346e67..eff6e627cb 100644 --- a/include/wx/strvararg.h +++ b/include/wx/strvararg.h @@ -207,7 +207,7 @@ public: { return const_cast(this)->AsChar(); } private: // InputAsChar() returns the value passed to ctor, only converted - // to char, while AsChar() takes the the string returned by InputAsChar() + // to char, while AsChar() takes the string returned by InputAsChar() // and does format string conversion on it as well (and similarly for // ..AsWChar() below) const char* InputAsChar(); @@ -318,7 +318,11 @@ struct wxFormatStringArgumentFinder "format specifier doesn't match argument type" ); \ } while ( wxFalse ) #else - #define wxASSERT_ARG_TYPE(fmt, index, expected_mask) + // Just define it to suppress "unused parameter" warnings for the + // parameters which we don't use otherwise + #define wxASSERT_ARG_TYPE(fmt, index, expected_mask) \ + wxUnusedVar(fmt); \ + wxUnusedVar(index) #endif // wxDEBUG_LEVEL/!wxDEBUG_LEVEL