mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
AK: Enable format string warnings for AK printf wrappers
This commit is contained in:
parent
9bf76a85c8
commit
ccf4368ca5
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…
Add table
Reference in a new issue