Skip to content

Commit

Permalink
Verify protobuf versions
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
shuhaowu committed Mar 15, 2024
1 parent 5218cb1 commit 8293e71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cactus_rt/app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8293e71

Please sign in to comment.