]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common: remove unused attribute
authorPatrick Donnelly <pdonnell@ibm.com>
Fri, 12 Sep 2025 19:53:00 +0000 (15:53 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Fri, 12 Sep 2025 19:53:53 +0000 (15:53 -0400)
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: 39af0bc23b3ae2063f8e846b0ff522bafa0f5c27
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/common/ceph_context.h

index 8fc45dbf9043f2ec39d80f45fdfb2900f696e8e5..5ecacd4b67ca4680535e6dad42d572cbdf239ab9 100644 (file)
@@ -152,7 +152,7 @@ public:
   static_assert(sizeof(std::unique_ptr<google_breakpad::ExceptionHandler>) == sizeof(std::unique_ptr<char>));
 #else
   // Reserve the space for the case when part of ceph is compiled with and other without HAVE_BREAKPAD
-  [[maybe_unused]] std::unique_ptr<char> _ex_handler;
+  std::unique_ptr<char> _ex_handler;
 #endif
 
   /* init ceph::crypto */