From e652c1cd24d3570a5eb2f166f0996292f83a54dc Mon Sep 17 00:00:00 2001 From: Taha Afzal Date: Wed, 18 Jan 2023 13:11:25 -0500 Subject: [PATCH] Fixing the build (as per John) --- src/lib/md/CCApiEventDemuxer.cpp | 3 +++ src/lib/utils/bts_fatal.h | 7 ++++--- src/server/sparkd/cmds/md/cmds/Run.cpp | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/md/CCApiEventDemuxer.cpp b/src/lib/md/CCApiEventDemuxer.cpp index e7cc1a34a..7bc81c13d 100644 --- a/src/lib/md/CCApiEventDemuxer.cpp +++ b/src/lib/md/CCApiEventDemuxer.cpp @@ -5,6 +5,7 @@ #include "lib/md/CCApiCorrelationID.h" #include "lib/md/ICCApiMessageHandler.h" +#include "lib/utils/helper_macros.h" #include #include #include @@ -77,6 +78,7 @@ bool CCApiEventDemuxer::processEvent( // trim the front parts off (they're all the same) child_corr_id.consume_parts(me_->corr_id_len); auto [it, _] = demuxed_msgs.try_emplace(child_corr_id); + UNUSED(_); it->second.push_back(&msg); } } @@ -106,6 +108,7 @@ void CCApiEventDemuxer::on_messages( // trim the front parts off (they're all the same) handler_corr_id.consume_parts(me_->corr_id_len); auto [it, _] = demuxed_msgs.try_emplace(handler_corr_id); + UNUSED(_); it->second.push_back(msg); } } diff --git a/src/lib/utils/bts_fatal.h b/src/lib/utils/bts_fatal.h index be5eda735..62a02919d 100644 --- a/src/lib/utils/bts_fatal.h +++ b/src/lib/utils/bts_fatal.h @@ -24,11 +24,12 @@ // making the following macro names off-limits: INFO, WARNING, ERROR, FATAL. // // The macros below demonstrate the problem (copied from -// google/protobuf/logging.h in externals): +// google/protobuf/logging.h in externals). Note that eol backslashes have been +// removed to avoid a 'multi-line comment' warning-as-error. // -// #define GOOGLE_LOG_IF(LEVEL, CONDITION) \ +// #define GOOGLE_LOG_IF(LEVEL, CONDITION) // !(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL) -// #define GOOGLE_CHECK(EXPRESSION) \ +// #define GOOGLE_CHECK(EXPRESSION) // GOOGLE_LOG_IF(FATAL, !(EXPRESSION)) << "CHECK failed: " #EXPRESSION ": " // // The other macros in this file, 'BTS_FATAL_MSG' and 'BTS_FATAL_MSGF', have diff --git a/src/server/sparkd/cmds/md/cmds/Run.cpp b/src/server/sparkd/cmds/md/cmds/Run.cpp index 29711f4e4..282dd0600 100644 --- a/src/server/sparkd/cmds/md/cmds/Run.cpp +++ b/src/server/sparkd/cmds/md/cmds/Run.cpp @@ -151,7 +151,7 @@ void Run::run( // start a thread for the md // _md_thread = // std::optional(bts::threading::make_thread("MDPublisher", impl)); - bool is_run_emumba = true; + bool is_run_emumba = false; if (is_run_emumba) { threading::make_thread("Emumba", []() { run_emumba(); }).detach(); }