From c2fef9d377dd3977ad8fed19d722efe4a79f7abc Mon Sep 17 00:00:00 2001 From: cblack-dev <138094208+cblack-dev@users.noreply.github.com> Date: Sun, 2 Jul 2023 08:50:31 -0700 Subject: [PATCH] Resolve unused varaible warning in _WIN32 builds of screen_interactive.cpp (#693) Marks constexpr int timeout_microseconds on line 73 as [[maybe_unused]] to resolve unused variable warning on _WIN32 builds. --- src/ftxui/component/screen_interactive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index dfca52e..7d8af41 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -70,7 +70,7 @@ void Flush() { } constexpr int timeout_milliseconds = 20; -constexpr int timeout_microseconds = timeout_milliseconds * 1000; +[[maybe_unused]] constexpr int timeout_microseconds = timeout_milliseconds * 1000; #if defined(_WIN32) void EventListener(std::atomic* quit, Sender out) {