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

osd/PGLog: fix warning #8057

Merged
merged 3 commits into from Mar 15, 2016
Merged

osd/PGLog: fix warning #8057

merged 3 commits into from Mar 15, 2016

Conversation

liewegas
Copy link
Member

osd/PGLog.h: In member function 'virtual unsigned int PGLog::get_subsys() const':
osd/PGLog.h:39:28: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
return prefix_provider ? prefix_provider->get_subsys() : ceph_subsys_osd;
^

Signed-off-by: Sage Weil sage@redhat.com

osd/PGLog.h: In member function 'virtual unsigned int PGLog::get_subsys() const':
osd/PGLog.h:39:28: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
     return prefix_provider ? prefix_provider->get_subsys() : ceph_subsys_osd;
                            ^


Signed-off-by: Sage Weil <sage@redhat.com>
Can't silent these and we have no users left.  They'll be removed
soon, but I'm tired of sifting through all the warnings.

Signed-off-by: Sage Weil <sage@redhat.com>
os/bluestore/KernelDevice.cc: In member function ‘virtual int KernelDevice::open(std::string)’:
os/bluestore/KernelDevice.cc:128:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (block_size != st.st_blksize) {

Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas liewegas added this to the jewel milestone Mar 11, 2016
@athanatos
Copy link
Contributor

lgtm

liewegas added a commit that referenced this pull request Mar 15, 2016
osd/PGLog: fix warning

Reviewed-by: Samuel Just <sjust@redhat.com>
@liewegas liewegas merged commit 34ff39f into ceph:master Mar 15, 2016
@liewegas liewegas deleted the wip-pglog-warning branch March 15, 2016 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants