New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: fix compiling warnings #8366
Conversation
could you prefix the title of your commit message with the subcomponent your are changing ? see https://github.com/ceph/ceph/blob/master/SubmittingPatches.rst#preparing-and-sending-patches |
@tchalkov Okey, done. |
test/system/st_rados_create_pool.cc: In function ‘std::__cxx11::string get_temp_pool_name(const char*)’: test/system/st_rados_create_pool.cc:128:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert(ret < sizeof(poolname)); ^ Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
In file included from test/objectstore/store_test.cc:33:0: ../src/gmock/gtest/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = unsigned int; T2 = int]’: ../src/gmock/gtest/include/gtest/gtest.h:1524:23: required from ‘static testing::AssertionResult testing::internal::EqHelper<true>::Compare(const char*, const char*, const T1&, const T2&, typename testing::internal::EnableIf<(! testing::internal::is_pointer<T2>::value)>::type*) [with T1 = unsigned int; T2 = int; typename testing::internal::EnableIf<(! testing::internal::is_pointer<T2>::value)>::type = void]’ test/objectstore/store_test.cc:1088:285: required from here ../src/gmock/gtest/include/gtest/gtest.h:1448:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (expected == actual) { ^ Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
os/filestore/FileStore.cc: In member function ‘int FileStore::_zero(const coll_t&, const ghobject_t&, uint64_t, size_t)’: os/filestore/FileStore.cc:3328:2: warning: label ‘out’ defined but not used [-Wunused-label] out: ^ Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Hi @tchaikov Please help to take a look. thanx |
could you remove "trival: " from the title? and could be more specific like "test/system: "? BTW, "trival" should be "trivial". |
@tchaikov Okey, done. please take a look again. thanx |
lgtm |
thanks for resolving the conflict! |
Please check the commit message of each commit for the detail.