From 9b1f44e7581d6ebc0e6444994abba0ec70dd8851 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Oct 2018 13:23:07 +0100 Subject: [PATCH] LogInit: work around two Android compiler warnings --- src/LogInit.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LogInit.cxx b/src/LogInit.cxx index 0f2dab10d..c18760099 100644 --- a/src/LogInit.cxx +++ b/src/LogInit.cxx @@ -41,6 +41,7 @@ #define LOG_DATE_BUF_SIZE 16 #define LOG_DATE_LEN (LOG_DATE_BUF_SIZE - 1) +gcc_unused static constexpr Domain log_domain("log"); #ifndef ANDROID @@ -121,6 +122,7 @@ void log_init(const ConfigData &config, bool verbose, bool use_stdout) { #ifdef ANDROID + (void)config; (void)verbose; (void)use_stdout; #else