mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-02 12:30:31 +00:00
AK: Enable format string warnings for AK printf wrappers
This commit is contained in:
parent
9bf76a85c8
commit
ccf4368ca5
Notes:
sideshowbarker
2024-07-18 23:55:48 +09:00
Author: https://github.com/ccapitalK Commit: https://github.com/SerenityOS/serenity/commit/ccf4368ca5d Pull-request: https://github.com/SerenityOS/serenity/pull/4900
2 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,7 @@ public:
|
|||
return String((const char*)buffer.data(), buffer.size(), should_chomp);
|
||||
}
|
||||
|
||||
static String format(const char*, ...);
|
||||
static String format(const char*, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
static String vformatted(StringView fmtstr, TypeErasedFormatParams);
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public:
|
|||
void append(char);
|
||||
void append_code_point(u32);
|
||||
void append(const char*, size_t);
|
||||
void appendf(const char*, ...);
|
||||
void appendf(const char*, ...) __attribute__((format(printf, 2, 3)));
|
||||
void appendvf(const char*, va_list);
|
||||
|
||||
void append_escaped_for_json(const StringView&);
|
||||
|
|
Loading…
Reference in a new issue