mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 07:49:05 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue