mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 18:41:35 +08:00
Revert "Silence gcc warning"
This reverts commit 8ab437a98944aaa9e1c373f0bf03ca6c4a589f06. 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…
x
Reference in New Issue
Block a user