projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add wxAffineMatrix2DBase class.
[wxWidgets.git]
/
include
/
wx
/
strvararg.h
diff --git
a/include/wx/strvararg.h
b/include/wx/strvararg.h
index db91346e675b0f576c30fb691e9185b5413ecb49..0bde80b3a675504d8e853e489ae0725d148a4dff 100644
(file)
--- a/
include/wx/strvararg.h
+++ b/
include/wx/strvararg.h
@@
-207,7
+207,7
@@
public:
{ return const_cast<wxFormatString*>(this)->AsChar(); }
private:
// InputAsChar() returns the value passed to ctor, only converted
{ return const_cast<wxFormatString*>(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();
// and does format string conversion on it as well (and similarly for
// ..AsWChar() below)
const char* InputAsChar();
@@
-318,7
+318,11
@@
struct wxFormatStringArgumentFinder<wxWCharBuffer>
"format specifier doesn't match argument type" ); \
} while ( wxFalse )
#else
"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
#endif // wxDEBUG_LEVEL/!wxDEBUG_LEVEL
@@
-821,7
+825,7
@@
WX_ARG_NORMALIZER_FORWARD(const signed char&, signed char);
#undef WX_ARG_NORMALIZER_FORWARD
#undef _WX_ARG_NORMALIZER_FORWARD_IMPL
#undef WX_ARG_NORMALIZER_FORWARD
#undef _WX_ARG_NORMALIZER_FORWARD_IMPL
-#undef wxASSERT_ARG_TYPE
+// NB: Don't #undef wxASSERT_ARG_TYPE here as it's also used in wx/longlong.h.
// ----------------------------------------------------------------------------
// WX_VA_ARG_STRING
// ----------------------------------------------------------------------------
// WX_VA_ARG_STRING