1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09: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
Notes: sideshowbarker 2024-07-18 18:56:35 +09:00
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;
}