Skip to content

mds/events/EImport{Finish,Start}.h: fix print() - #49

Closed
dalgaaf wants to merge 1 commit into
ceph:masterfrom
dalgaaf:wip-da-sca-clang-overloaded-virt
Closed

dalgaaf wants to merge 1 commit into
ceph:masterfrom
dalgaaf:wip-da-sca-clang-overloaded-virt

Conversation

@dalgaaf

@dalgaaf dalgaaf commented Feb 12, 2013

Copy link
Copy Markdown
Contributor

Fix -Woverloaded-virtual warning from clang++. Remove 'const'
from print() in derived classes.

mds/events/EImportStart.h:43:8: warning: 'EImportStart::print'
hides overloaded virtual function [-Woverloaded-virtual]
void print(ostream& out) const {
^
mds/events/../LogEvent.h:95:16: note: hidden overloaded virtual
function 'LogEvent::print' declared here
virtual void print(ostream& out) {
^
In file included from mds/journal.cc:31:
mds/events/EImportFinish.h:35:8: warning: 'EImportFinish::print'
hides overloaded virtual function [-Woverloaded-virtual]
void print(ostream& out) const {
^
mds/events/../LogEvent.h:95:16: note: hidden overloaded
virtual function 'LogEvent::print' declared here
virtual void print(ostream& out) {
^

Fix -Woverloaded-virtual warning from clang++. Remove 'const'
from print() in derived classes.

mds/events/EImportStart.h:43:8: warning: 'EImportStart::print'
 hides overloaded virtual function [-Woverloaded-virtual]
  void print(ostream& out) const {
       ^
mds/events/../LogEvent.h:95:16: note: hidden overloaded virtual
 function 'LogEvent::print' declared here
  virtual void print(ostream& out) {
               ^
In file included from mds/journal.cc:31:
mds/events/EImportFinish.h:35:8: warning: 'EImportFinish::print'
 hides overloaded virtual function [-Woverloaded-virtual]
  void print(ostream& out) const {
       ^
mds/events/../LogEvent.h:95:16: note: hidden overloaded
 virtual function 'LogEvent::print' declared here
  virtual void print(ostream& out) {
               ^

Signed-off-by: Danny Al-Gaaf <[email protected]>
@gregsfortytwo

Copy link
Copy Markdown
Member

Instead of removing the const flag from those classes, we should probably add it to the rest of them. const-correctness hurray! :)

Would you like to do that, or shall I?

@dalgaaf

dalgaaf commented Feb 12, 2013

Copy link
Copy Markdown
Contributor Author

I will change it that way and will fill a new pull request. Thanks for the comment

@dalgaaf
dalgaaf deleted the wip-da-sca-clang-overloaded-virt branch February 12, 2013 20:52
XinzeChi pushed a commit to XinzeChi/ceph that referenced this pull request Jan 29, 2016
os: add a field indicate xattr only one chunk for set xattr.
ddiss pushed a commit to ddiss/ceph that referenced this pull request Oct 25, 2016
rpm: build of ceph-test package disabled by default

Reviewed-by: Nathan Cutler <[email protected]>
tchaikov pushed a commit to tchaikov/ceph that referenced this pull request Jun 3, 2017
rjfd added a commit to rjfd/ceph that referenced this pull request Jan 30, 2018
mgr/dashboard_v2: Fix pylint errors exposed in python 2.7
cbodley added a commit to cbodley/ceph that referenced this pull request Mar 21, 2018
5538352 Merge pull request ceph#49 from cbodley/wip-remove-by-ptr
2dbd66d PriorityQueueBase uses RequestRef&& for remove_by callbacks
729d8c0 Merge pull request ceph#48 from ivancich/wip-add-license
3f2e0b4 Added LGPL2.1 license to all files.

git-subtree-dir: src/dmclock
git-subtree-split: 5538352
galsalomon66 referenced this pull request in galsalomon66/ceph Sep 17, 2022
* s3select: CASE statement used to match conditions

Signed-off-by: Albin Antony <[email protected]>

* adding support for case-value-when-then;  need to validate correct behavior upon nested functions

Signed-off-by: gal salomon <[email protected]>

* fix typo

Signed-off-by: Albin Antony <[email protected]>

* tests

Signed-off-by: Albin Antony <[email protected]>

Co-authored-by: gal salomon <[email protected]>
jecluis pushed a commit to jecluis/ceph that referenced this pull request Oct 10, 2022
rgw/sfs: Get user by access_key when user has multiple keys
athanatos pushed a commit to athanatos/ceph that referenced this pull request Feb 14, 2025
PriorityQueueBase uses RequestRef&& for remove_by callbacks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants