diff --git a/src/output.cpp b/src/output.cpp index 5b9a295b7..ba90b5e3e 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -474,9 +474,9 @@ rgb_color_t parse_color(const env_var_t &var, bool is_background) { std::vector candidates; - static const wchar_t *prefix = L"--background="; + const wchar_t *prefix = L"--background="; // wcslen is not available as constexpr - static auto prefix_len = wcslen(prefix); + size_t prefix_len = wcslen(prefix); wcstring color_name; for (const wcstring &next : var.as_list()) {