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:
Fabian Boehm 2022-10-05 22:29:04 +02:00
parent 8ab437a989
commit 460f56f95a

View File

@ -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
}
}