]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
include: Add [[nodiscard]] to make_scope_guard 48633/head
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 26 Oct 2022 17:22:08 +0000 (13:22 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 26 Oct 2022 17:33:44 +0000 (13:33 -0400)
commitf8c14ed8f08bc7896e678cd7225bfe281459b853
tree3654ce62759f0fb0d99704a3e0c3d08ca9eb1646
parentd1dbfae3b233d2d38e0a0383c6ebae5f3795b4fa
include: Add [[nodiscard]] to make_scope_guard

To prevent a bug where an unassigned scope guard runs right away.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/include/scope_guard.h