fixed warning about printf format specifications <-> argument mismatches in wxLogLastError
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -578,13 +578,13 @@ void WXDLLEXPORT wxSafeShowMessage(const wxString& title, const wxString& text);
|
|||||||
#define wxLogApiError(api, rc) \
|
#define wxLogApiError(api, rc) \
|
||||||
wxLogDebug(wxT("%s(%d): '%s' failed with error 0x%08lx (%s)."), \
|
wxLogDebug(wxT("%s(%d): '%s' failed with error 0x%08lx (%s)."), \
|
||||||
__TFILE__, __LINE__, api, \
|
__TFILE__, __LINE__, api, \
|
||||||
rc, wxSysErrorMsg(rc))
|
(long)rc, wxSysErrorMsg(rc))
|
||||||
#else // !VC++
|
#else // !VC++
|
||||||
#define wxLogApiError(api, rc) \
|
#define wxLogApiError(api, rc) \
|
||||||
wxLogDebug(wxT("In file %s at line %d: '%s' failed with " \
|
wxLogDebug(wxT("In file %s at line %d: '%s' failed with " \
|
||||||
"error 0x%08lx (%s)."), \
|
"error 0x%08lx (%s)."), \
|
||||||
__TFILE__, __LINE__, api, \
|
__TFILE__, __LINE__, api, \
|
||||||
rc, wxSysErrorMsg(rc))
|
(long)rc, wxSysErrorMsg(rc))
|
||||||
#endif // VC++/!VC++
|
#endif // VC++/!VC++
|
||||||
|
|
||||||
#define wxLogLastError(api) wxLogApiError(api, wxSysErrorCode())
|
#define wxLogLastError(api) wxLogApiError(api, wxSysErrorCode())
|
||||||
|
Reference in New Issue
Block a user