diff options
Diffstat (limited to 'Libraries/LibC')
-rw-r--r-- | Libraries/LibC/stdio.h | 10 | ||||
-rw-r--r-- | Libraries/LibC/time.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Libraries/LibC/stdio.h b/Libraries/LibC/stdio.h index 18ce1da471..d016c65706 100644 --- a/Libraries/LibC/stdio.h +++ b/Libraries/LibC/stdio.h @@ -101,11 +101,11 @@ int putc(int ch, FILE*); int puts(const char*); int fputs(const char*, FILE*); void perror(const char*); -int scanf(const char* fmt, ...); -int sscanf(const char* str, const char* fmt, ...); -int fscanf(FILE*, const char* fmt, ...); -int vfscanf(FILE*, const char*, va_list); -int vsscanf(const char*, const char*, va_list); +int scanf(const char* fmt, ...) __attribute__((format(scanf, 1, 2))); +int sscanf(const char* str, const char* fmt, ...) __attribute__((format(scanf, 2, 3))); +int fscanf(FILE*, const char* fmt, ...) __attribute__((format(scanf, 2, 3))); +int vfscanf(FILE*, const char*, va_list) __attribute__((format(scanf, 2, 0))); +int vsscanf(const char*, const char*, va_list) __attribute__((format(scanf, 2, 0))); int setvbuf(FILE*, char* buf, int mode, size_t); void setbuf(FILE*, char* buf); void setlinebuf(FILE*); diff --git a/Libraries/LibC/time.h b/Libraries/LibC/time.h index 05fcb883d3..74cf7f8de6 100644 --- a/Libraries/LibC/time.h +++ b/Libraries/LibC/time.h @@ -86,6 +86,6 @@ struct tm* gmtime_r(const time_t* timep, struct tm* result); struct tm* localtime_r(const time_t* timep, struct tm* result); double difftime(time_t, time_t); -size_t strftime(char* s, size_t max, const char* format, const struct tm*); +size_t strftime(char* s, size_t max, const char* format, const struct tm*) __attribute__((format(strftime, 3, 0))); __END_DECLS |