]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: osd/TestOSDMap.cc: fix Clang complain about promotion 15525/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 6 Jun 2017 21:35:18 +0000 (23:35 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 6 Jun 2017 21:35:18 +0000 (23:35 +0200)
commit96f85585e5fe6b1183788dcdd721cd11d26cc169
treea65d046d47f149120dfc1b106810ec0d7a42e350
parentba32343ed72dcecb6bc17867df2e907a9c46e89e
test: osd/TestOSDMap.cc: fix Clang complain about promotion

/home/jenkins/workspace/ceph-freebsd/src/test/osd/TestOSDMap.cc:444:15: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
    m.set(x, {i});
              ^
/home/jenkins/workspace/ceph-freebsd/src/test/osd/TestOSDMap.cc:444:15: note: insert an explicit cast to silence this issue
    m.set(x, {i});
              ^
              static_cast<int>( )
1 error generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/test/osd/TestOSDMap.cc