osdep/io: add PRINTF_ATTRIBUTE for printf overrides

This commit is contained in:
Kacper Michajłow 2023-11-24 07:32:25 +01:00 committed by sfan5
parent d0e609297f
commit bdf4dca505
1 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,8 @@
#include <fcntl.h>
#include <locale.h>
#include "compiler.h"
#if HAVE_GLOB_POSIX
#include <glob.h>
#endif
@ -94,8 +96,8 @@ char *mp_to_utf8(void *talloc_ctx, const wchar_t *s);
#include <sys/stat.h>
#include <fcntl.h>
int mp_printf(const char *format, ...);
int mp_fprintf(FILE *stream, const char *format, ...);
int mp_printf(const char *format, ...) PRINTF_ATTRIBUTE(1, 2);
int mp_fprintf(FILE *stream, const char *format, ...) PRINTF_ATTRIBUTE(2, 3);
int mp_open(const char *filename, int oflag, ...);
int mp_creat(const char *filename, int mode);
int mp_rename(const char *oldpath, const char *newpath);