From b9be5bc03baceeae108e8a09a2559b33400f395f Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Fri, 27 Nov 2020 18:48:56 +0200 Subject: Mark local global variable with internal linkage --- src/xorg-gtest_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xorg-gtest_main.cpp b/src/xorg-gtest_main.cpp index 459c003..a1cdbe4 100644 --- a/src/xorg-gtest_main.cpp +++ b/src/xorg-gtest_main.cpp @@ -53,10 +53,10 @@ const struct option longopts[] = { { nullptr, 0, nullptr, 0 } }; -} // namespace - xorg::testing::Environment* environment = nullptr; +} // namespace + static void signal_handler(int signum) { if (environment) environment->Kill(); -- cgit v1.2.3