fix clang warnings

This commit is contained in:
Ivan Blinkov 2020-06-01 21:25:25 +03:00
parent f6e69355fa
commit 1797a47a9f

View File

@ -17,8 +17,8 @@
namespace namespace
{ {
static bool initialized = false; bool initialized = false;
static bool anonymize = false; bool anonymize = false;
void setExtras() void setExtras()
{ {
@ -44,7 +44,7 @@ void SentryWriter::initialize(Poco::Util::LayeredConfiguration & config)
#if USE_SENTRY #if USE_SENTRY
bool enabled = false; bool enabled = false;
bool debug = config.getBool("send_crash_reports.debug", false); bool debug = config.getBool("send_crash_reports.debug", false);
auto logger = &Poco::Logger::get("SentryWriter"); auto * logger = &Poco::Logger::get("SentryWriter");
if (config.getBool("send_crash_reports.enabled", false)) if (config.getBool("send_crash_reports.enabled", false))
{ {
if (debug || (strlen(VERSION_OFFICIAL) > 0)) if (debug || (strlen(VERSION_OFFICIAL) > 0))
@ -121,7 +121,7 @@ void SentryWriter::shutdown()
void SentryWriter::onFault(int sig, const siginfo_t & info, const ucontext_t & context, const StackTrace & stack_trace) void SentryWriter::onFault(int sig, const siginfo_t & info, const ucontext_t & context, const StackTrace & stack_trace)
{ {
#if USE_SENTRY #if USE_SENTRY
auto logger = &Poco::Logger::get("SentryWriter"); auto * logger = &Poco::Logger::get("SentryWriter");
if (initialized) if (initialized)
{ {
const std::string & error_message = signalToErrorMessage(sig, info, context); const std::string & error_message = signalToErrorMessage(sig, info, context);