]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common,filestore: silence GCC-8 warnings 24648/head
authorSage Weil <sage@redhat.com>
Wed, 17 Oct 2018 22:22:42 +0000 (17:22 -0500)
committerSage Weil <sage@redhat.com>
Wed, 17 Oct 2018 22:22:42 +0000 (17:22 -0500)
commit1005fcdb9c5fc767c30701668a5812e5fa2bcb4c
treef6f0ef8d1518a8375e6bca155c3e33a6e844cb8f
parent1cde6d651cd1c1a798fbf02b69576158ed3d5c96
common,filestore: silence GCC-8 warnings

should catch polymorphic exceptions by reference. this silences warnings
like:

error: catching polymorphic type â€˜class std::RetryException’ by value
[-Werror=catch-value=]
     } catch (std::RetryException) {

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 62382040ee9b655a68b15ccb43cebb39c9dc3a45)

# Conflicts:
# src/mgr/DaemonState.h
- skipped mgr/DaemonState.h, which is new code
src/common/cmdparse.h
src/os/filestore/LFNIndex.h