1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Userland: Fix new GCC warnings

This commit is contained in:
Gunnar Beutner 2021-04-22 16:39:02 +02:00 committed by Andreas Kling
parent 8cd62b5780
commit c861195557
5 changed files with 12 additions and 3 deletions

View file

@ -142,7 +142,10 @@ void Label::wrap_text()
case '\t':
case ' ': {
if (start.has_value())
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
words.append(m_text.substring(start.value(), i - start.value()));
#pragma GCC diagnostic pop
start.clear();
continue;
}