]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSD: Silence unused variable warnings 18406/head
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 19 Oct 2017 18:21:30 +0000 (14:21 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 19 Oct 2017 18:43:57 +0000 (14:43 -0400)
commitbda3c2673bec0e32232594ba349b49a43c080879
tree49feb0eddcfb2873fabaab4babd16dbb984e8917
parent87b4d1646e70a6deeede1933f229280075dc511c
OSD: Silence unused variable warnings

Even though extending the lifetime of this temporary delays execution
of its destructor, the compiler does not consider the reference to
have a side-effecting constructor.

The compiler is wrong, but we can silence its complaints.

This will cease to be an issue once we adopt C++17, since mandatory
RVO will solve the inability to bind a variable to a returned
move-only object and the need to extend a temporary.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/osd/OSD.cc