1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

AK: Enable format string warnings for AK printf wrappers

This commit is contained in:
Sahan Fernando 2021-01-12 01:02:37 +11:00 committed by Andreas Kling
parent 9bf76a85c8
commit ccf4368ca5
2 changed files with 2 additions and 2 deletions

View file

@ -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);