Skip to content

Commit 09230d9

Browse files
committed
common: remove unused attribute
This resolves an obnoxious compiler warning: [79/768] Building CXX object src/mgr/CMakeFiles/ceph-mgr.dir/__/ceph_mgr.cc.o In file included from /run/host/home/sepian/ceph/src/global/global_init.h:23, from /run/host/home/sepian/ceph/src/ceph_mgr.cc:27: /run/host/home/sepian/ceph/src/common/ceph_context.h:153:42: warning: ‘maybe_unused’ attribute ignored [-Wattributes] 153 | [[maybe_unused]] std::unique_ptr<char> _ex_handler; | ^~~~~~~~~~~ Fixes: 39af0bc Signed-off-by: Patrick Donnelly <[email protected]>
1 parent f3253ed commit 09230d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/ceph_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class CephContext {
152152
static_assert(sizeof(std::unique_ptr<google_breakpad::ExceptionHandler>) == sizeof(std::unique_ptr<char>));
153153
#else
154154
// 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;
155+
std::unique_ptr<char> _ex_handler;
156156
#endif
157157

158158
/* init ceph::crypto */

0 commit comments

Comments
 (0)