1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:47:35 +00:00

LibC: Enable compiler warnings for printf format strings

This commit is contained in:
Sahan Fernando 2020-12-25 15:12:40 +11:00 committed by Andreas Kling
parent 1cfdaf96c4
commit 6b01d1cf14
3 changed files with 16 additions and 16 deletions

View file

@ -33,11 +33,11 @@
# include <AK/Types.h>
# include <stdarg.h>
extern "C" {
int vdbgprintf(const char* fmt, va_list);
int dbgprintf(const char* fmt, ...);
int vdbgprintf(const char* fmt, va_list) __attribute__((format(printf, 1, 0)));
int dbgprintf(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
int dbgputstr(const char*, ssize_t);
int sprintf(char* buf, const char* fmt, ...);
int snprintf(char* buffer, size_t, const char* fmt, ...);
int sprintf(char* buf, const char* fmt, ...) __attribute__((format(printf, 2, 3)));
int snprintf(char* buffer, size_t, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
}
# endif
#else