diff --git a/osdep/io.h b/osdep/io.h index db711fb265..ca07bdbfb3 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -29,6 +29,8 @@ #include #include +#include "compiler.h" + #if HAVE_GLOB_POSIX #include #endif @@ -94,8 +96,8 @@ char *mp_to_utf8(void *talloc_ctx, const wchar_t *s); #include #include -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);