From fc12728d25f5f23ddab79d20d67f659afbb4be36 Mon Sep 17 00:00:00 2001 From: elsid Date: Fri, 19 Jan 2024 14:04:03 +0100 Subject: [PATCH] Move crash_switch variable to cpp file --- components/crashcatcher/crashcatcher.cpp | 2 ++ components/crashcatcher/crashcatcher.hpp | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/crashcatcher/crashcatcher.cpp b/components/crashcatcher/crashcatcher.cpp index f478e2dff8..0a06557e3a 100644 --- a/components/crashcatcher/crashcatcher.cpp +++ b/components/crashcatcher/crashcatcher.cpp @@ -67,6 +67,8 @@ static struct namespace { + constexpr char crash_switch[] = "--cc-handle-crash"; + struct SignalInfo { int mCode; diff --git a/components/crashcatcher/crashcatcher.hpp b/components/crashcatcher/crashcatcher.hpp index a9efcaccdc..3cd1480dd5 100644 --- a/components/crashcatcher/crashcatcher.hpp +++ b/components/crashcatcher/crashcatcher.hpp @@ -11,8 +11,6 @@ #define USE_CRASH_CATCHER 0 #endif -constexpr char crash_switch[] = "--cc-handle-crash"; - #if USE_CRASH_CATCHER extern void crashCatcherInstall(int argc, char** argv, const std::filesystem::path& crashLogPath); #else