diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-24 07:32:25 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-25 12:38:20 +0100 |
commit | bdf4dca50508994284d4a80b08dd73d3a739e8f1 (patch) | |
tree | 265c89a8ee53b6d3c751516bb123349169e0f720 /osdep | |
parent | d0e609297fdfeb51131ac2cd91e8346cbfca840a (diff) | |
download | mpv-bdf4dca50508994284d4a80b08dd73d3a739e8f1.tar.bz2 mpv-bdf4dca50508994284d4a80b08dd73d3a739e8f1.tar.xz |
osdep/io: add PRINTF_ATTRIBUTE for printf overrides
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/io.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <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); |