mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-21 02:54:17 +08:00
Revert "Silence gcc warning"
This reverts commit 8ab437a989
.
It introduced a warning for clang - because that read the GCC pragma and didn't understand it.
This commit is contained in:
parent
8ab437a989
commit
460f56f95a
|
@ -766,16 +766,8 @@ static void color_string_internal(const wcstring &buffstr, highlight_spec_t base
|
|||
}
|
||||
|
||||
// Error on unclosed quotes.
|
||||
if (unclosed_quote_offset.has_value()) {
|
||||
// gcc complains this is uninitialized
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
#endif
|
||||
if (unclosed_quote_offset) {
|
||||
colors[*unclosed_quote_offset] = highlight_role_t::error;
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user