mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
AK+Kernel+Userland: Enable some more compiletime format string checks
This enables format string checks for three more functions: - String::formatted() - Builder::appendff() - KBufferBuilder::appendff()
This commit is contained in:
parent
c989e55195
commit
7c2754c3a6
6 changed files with 24 additions and 17 deletions
|
@ -60,7 +60,7 @@ static TitleAndText build_backtrace(const CoreDump::Reader& coredump, const ELF:
|
|||
|
||||
StringBuilder builder;
|
||||
|
||||
auto prepend_metadata = [&](auto& key, auto& fmt) {
|
||||
auto prepend_metadata = [&](auto& key, StringView fmt) {
|
||||
auto maybe_value = coredump.metadata().get(key);
|
||||
if (!maybe_value.has_value() || maybe_value.value().is_empty())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue