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:
parent
8cd62b5780
commit
c861195557
Notes:
sideshowbarker
2024-07-18 18:56:35 +09:00
Author: https://github.com/gunnarbeutner
Commit: c861195557
Pull-request: https://github.com/SerenityOS/serenity/pull/6552
5 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue