Skip to content

Commit 0473c8f

Browse files
authored
Merge pull request ceph#64829 from aclamk/aclamk-jenkins-fix-make-check
common/ceph_context.h: reserve space for breakpad in CephContext
2 parents 00ab6c7 + 39af0bc commit 0473c8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common/ceph_context.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ class CephContext {
149149
ceph::logging::Log *_log;
150150
#ifdef HAVE_BREAKPAD
151151
std::unique_ptr<google_breakpad::ExceptionHandler> _ex_handler;
152+
static_assert(sizeof(std::unique_ptr<google_breakpad::ExceptionHandler>) == sizeof(std::unique_ptr<char>));
153+
#else
154+
// Reserve the space for the case when part of ceph is compiled with and other without HAVE_BREAKPAD
155+
[[maybe_unused]] std::unique_ptr<char> _ex_handler;
152156
#endif
153157

154158
/* init ceph::crypto */

0 commit comments

Comments
 (0)