Skip to content
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

Merged
merged 3 commits into from Apr 3, 2016
Merged

build: fix compiling warnings #8366

merged 3 commits into from Apr 3, 2016

Conversation

yangdongsheng
Copy link
Contributor

Please check the commit message of each commit for the detail.

@tchaikov
Copy link
Contributor

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

@yangdongsheng
Copy link
Contributor Author

@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>
@yangdongsheng
Copy link
Contributor Author

Hi @tchaikov Please help to take a look. thanx

@tchaikov
Copy link
Contributor

tchaikov commented Apr 1, 2016

could you remove "trival: " from the title? and could be more specific like "test/system: "?

BTW, "trival" should be "trivial".

@yangdongsheng
Copy link
Contributor Author

@tchaikov Okey, done. please take a look again. thanx

@yangdongsheng yangdongsheng changed the title Trival: fix compiling warnings. Trivial: fix compiling warnings. Apr 1, 2016
@tchaikov
Copy link
Contributor

tchaikov commented Apr 1, 2016

lgtm

@yangdongsheng
Copy link
Contributor Author

Hi @tchaikov I found #8193 have addressed the unused-variable warning which I was trying to fix. Then there was a conflict to merge this branch.

Now I have remove that commit and it's green now.

@tchaikov
Copy link
Contributor

tchaikov commented Apr 2, 2016

thanks for resolving the conflict!

@liewegas liewegas changed the title Trivial: fix compiling warnings. build: fix compiling warnings Apr 3, 2016
@liewegas liewegas merged commit 773d5ec into ceph:master Apr 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants