mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03: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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user