From: Jason Dillaman Date: Thu, 6 Oct 2016 13:38:25 +0000 (-0400) Subject: cls_rbd: fix compiler warning due to feature bit macro type change X-Git-Tag: v11.1.0~701^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a0c82b4276f593cbf5831419023b537ff279e028;p=ceph.git cls_rbd: fix compiler warning due to feature bit macro type change Signed-off-by: Jason Dillaman --- diff --git a/src/cls/rbd/cls_rbd.cc b/src/cls/rbd/cls_rbd.cc index 29754f18d340..40574f334b71 100644 --- a/src/cls/rbd/cls_rbd.cc +++ b/src/cls/rbd/cls_rbd.cc @@ -441,7 +441,7 @@ int set_features(cls_method_context_t hctx, bufferlist *in, bufferlist *out) uint64_t enabled_features = features & mask; if ((enabled_features & RBD_FEATURES_MUTABLE) != enabled_features) { CLS_ERR("Attempting to enable immutable feature: %" PRIu64, - enabled_features & ~RBD_FEATURES_MUTABLE); + static_cast(enabled_features & ~RBD_FEATURES_MUTABLE)); return -EINVAL; }