mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibC: Enable compiler warnings for printf format strings
This commit is contained in:
parent
1cfdaf96c4
commit
6b01d1cf14
Notes:
sideshowbarker
2024-07-19 00:35:56 +09:00
Author: https://github.com/ccapitalK
Commit: 6b01d1cf14
Pull-request: https://github.com/SerenityOS/serenity/pull/4532
Reviewed-by: https://github.com/ADKaster
3 changed files with 16 additions and 16 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue