added attribute printf checks to printf like functions (when using gcc)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -487,11 +487,13 @@ WXDLLEXPORT const wxChar* wxSysErrorMsg(unsigned long nErrCode = 0);
|
||||
#define DECLARE_LOG_FUNCTION(level) \
|
||||
extern void WXDLLEXPORT wxVLog##level(const wxChar *szFormat, \
|
||||
va_list argptr); \
|
||||
extern void WXDLLEXPORT wxLog##level(const wxChar *szFormat, ...)
|
||||
extern void WXDLLEXPORT wxLog##level(const wxChar *szFormat, \
|
||||
...) ATTRIBUTE_PRINTF_1
|
||||
#define DECLARE_LOG_FUNCTION2(level, arg1) \
|
||||
extern void WXDLLEXPORT wxVLog##level(arg1, const wxChar *szFormat, \
|
||||
va_list argptr); \
|
||||
extern void WXDLLEXPORT wxLog##level(arg1, const wxChar *szFormat, ...)
|
||||
extern void WXDLLEXPORT wxLog##level(arg1, const wxChar *szFormat, \
|
||||
...) ATTRIBUTE_PRINTF_2
|
||||
|
||||
#else // !wxUSE_LOG
|
||||
|
||||
|
Reference in New Issue
Block a user