1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +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

@ -29,11 +29,11 @@
#include <AK/Types.h>
extern "C" {
int dbgprintf(const char* fmt, ...);
int dbgprintf(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
int dbgputstr(const char*, int);
int kernelputstr(const char*, int);
int kprintf(const char* fmt, ...);
int snprintf(char* buf, size_t, const char* fmt, ...);
int kprintf(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
int snprintf(char* buf, size_t, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
void set_serial_debug(bool on_or_off);
int get_serial_debug();
}