X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec376c8fd9ff813392030426acd2317c6fa6527e..84c3e788d6200d68384852e4c4785c09922ec499:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index 9739fbf260..f8cda81a80 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -597,6 +597,13 @@ typedef int wxWindowID; #define WXUNUSED_IN_WINCE(param) param #endif +/* unused parameters in non stream builds */ +#if wxUSE_STREAMS + #define WXUNUSED_UNLESS_STREAMS(param) param +#else + #define WXUNUSED_UNLESS_STREAMS(param) WXUNUSED(param) +#endif + /* some compilers give warning about a possibly unused variable if it is */ /* initialized in both branches of if/else and shut up if it is initialized */ /* when declared, but other compilers then give warnings about unused variable */