]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/denc: silence gcc warnings
authorKefu Chai <kchai@redhat.com>
Thu, 16 Feb 2017 11:39:30 +0000 (19:39 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Feb 2017 10:19:08 +0000 (18:19 +0800)
commitcdb3ecb57ecd6decda973ca47007ed96f7a5b7cd
treecd3df57a55d5de6bc672a662a0a6bc12c91f56dc
parent92e51fd9443bfadddf0f9f7ea8aebca74a104776
include/denc: silence gcc warnings

gcc-7 complains:

ceph/ceph/src/include/denc.h:469:50: warning: enum constant in boolean
context [-Wint-in-bool-context]
 inline typename std::enable_if<traits::supported &&
                                ~~~~~~~~~~~~~~~~~~^~
           traits::featured>::type denc(
           ~~~~~~

so let's use "static constexpr bool" instead of enum.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/denc.h
src/include/fs_types.h
src/include/interval_set.h
src/include/object.h
src/os/bluestore/bluestore_types.h
src/test/encoding.cc