]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: silence warning from -Woverflow 16329/head
authorJos Collin <jcollin@redhat.com>
Fri, 14 Jul 2017 02:13:51 +0000 (07:43 +0530)
committerJos Collin <jcollin@redhat.com>
Fri, 14 Jul 2017 03:45:50 +0000 (09:15 +0530)
commit2c899fbe5787c7cb48445944be95d8cefdc857f3
treec116bbf9d0d30dc8d70fcc996ee2b36aca1a3c25
parent24d4415a9654f0534f3055ced4837a153d6f9f30
crush: silence warning from -Woverflow

The following warning appears during build:
ceph/src/crush/CrushWrapper.cc: In member function ‘int32_t CrushWrapper::_alloc_class_id() const’:
ceph/src/crush/CrushWrapper.cc:1322:56: warning: integer overflow in expression [-Woverflow]
   uint32_t upperlimit = numeric_limits<int32_t>::max() + 1;
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/crush/CrushWrapper.cc