added attribute printf to perform printf format checks (GNU C)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -490,7 +490,7 @@ void WXDLLEXPORT wxGetMousePosition( int* x, int* y );
|
|||||||
|
|
||||||
// Format a message on the standard error (UNIX) or the debugging
|
// Format a message on the standard error (UNIX) or the debugging
|
||||||
// stream (Windows)
|
// stream (Windows)
|
||||||
WXDLLEXPORT void wxDebugMsg(const wxChar *fmt ...);
|
WXDLLEXPORT void wxDebugMsg(const wxChar *fmt ...) ATTRIBUTE_PRINTF_1;
|
||||||
|
|
||||||
// Non-fatal error (continues)
|
// Non-fatal error (continues)
|
||||||
WXDLLEXPORT_DATA(extern const wxChar*) wxInternalErrorStr;
|
WXDLLEXPORT_DATA(extern const wxChar*) wxInternalErrorStr;
|
||||||
|
@@ -632,13 +632,13 @@ WXDLLEXPORT FILE * wxFopen(const wxChar *path, const wxChar *mode);
|
|||||||
WXDLLEXPORT FILE * wxFreopen(const wxChar *path, const wxChar *mode, FILE *stream);
|
WXDLLEXPORT FILE * wxFreopen(const wxChar *path, const wxChar *mode, FILE *stream);
|
||||||
WXDLLEXPORT int wxRemove(const wxChar *path);
|
WXDLLEXPORT int wxRemove(const wxChar *path);
|
||||||
WXDLLEXPORT int wxRename(const wxChar *oldpath, const wxChar *newpath);
|
WXDLLEXPORT int wxRename(const wxChar *oldpath, const wxChar *newpath);
|
||||||
WXDLLEXPORT int wxPrintf(const wxChar *fmt, ...);
|
WXDLLEXPORT int wxPrintf(const wxChar *fmt, ...) ATTRIBUTE_PRINTF_1;
|
||||||
WXDLLEXPORT int wxVprintf(const wxChar *fmt, va_list argptr);
|
WXDLLEXPORT int wxVprintf(const wxChar *fmt, va_list argptr);
|
||||||
WXDLLEXPORT int wxFprintf(FILE *stream, const wxChar *fmt, ...);
|
WXDLLEXPORT int wxFprintf(FILE *stream, const wxChar *fmt, ...) ATTRIBUTE_PRINTF_2;
|
||||||
WXDLLEXPORT int wxVfprintf(FILE *stream, const wxChar *fmt, va_list argptr);
|
WXDLLEXPORT int wxVfprintf(FILE *stream, const wxChar *fmt, va_list argptr);
|
||||||
WXDLLEXPORT int wxSprintf(wxChar *buf, const wxChar *fmt, ...);
|
WXDLLEXPORT int wxSprintf(wxChar *buf, const wxChar *fmt, ...) ATTRIBUTE_PRINTF_2;
|
||||||
WXDLLEXPORT int wxVsprintf(wxChar *buf, const wxChar *fmt, va_list argptr);
|
WXDLLEXPORT int wxVsprintf(wxChar *buf, const wxChar *fmt, va_list argptr);
|
||||||
WXDLLEXPORT int wxSscanf(const wxChar *buf, const wxChar *fmt, ...);
|
WXDLLEXPORT int wxSscanf(const wxChar *buf, const wxChar *fmt, ...) ATTRIBUTE_PRINTF_2;
|
||||||
WXDLLEXPORT int wxVsscanf(const wxChar *buf, const wxChar *fmt, va_list argptr);
|
WXDLLEXPORT int wxVsscanf(const wxChar *buf, const wxChar *fmt, va_list argptr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user