From fa1b1e700b834cad71e165b9a9b92884f4d19573 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Oct 2020 14:46:41 +0200 Subject: [PATCH] Initialize variable to avoid a warning in wxCaret unit test Always initialize the caret pointer in the test added in 88f808e303 (Add a unit test for wxCaret::Create(), 2020-10-01) to avoid a MSVS warning. --- tests/controls/windowtest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/controls/windowtest.cpp b/tests/controls/windowtest.cpp index abeca1b0aa..377a2538cf 100644 --- a/tests/controls/windowtest.cpp +++ b/tests/controls/windowtest.cpp @@ -135,7 +135,7 @@ TEST_CASE_METHOD(WindowTestCase, "Window::Mouse", "[window]") #if wxUSE_CARET CHECK(!m_window->GetCaret()); - wxCaret* caret; + wxCaret* caret = NULL; // Try creating the caret in two different, but normally equivalent, ways. SECTION("Caret 1-step")