From 8293e7164fbfff7dc6c83a7577ffbe527d62683f Mon Sep 17 00:00:00 2001 From: Shuhao Wu Date: Fri, 15 Mar 2024 10:32:09 -0400 Subject: [PATCH] Verify protobuf versions There is a small possibility that the protobuf versions mismatched (in a very messed up compilation environment where the header and the installed library versions don't match). --- src/cactus_rt/app.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cactus_rt/app.cc b/src/cactus_rt/app.cc index cb9d914..2887c31 100644 --- a/src/cactus_rt/app.cc +++ b/src/cactus_rt/app.cc @@ -28,6 +28,10 @@ App::App(std::string name, AppConfig config) SetDefaultLogFormat(logger_config_); } +#ifdef CACTUS_RT_TRACING_ENABLED + GOOGLE_PROTOBUF_VERIFY_VERSION; +#endif + // TODO: backend_thread_notification_handler can throw - we need to handle this somehow // logger_config_.backend_thread_notification_handler }