You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2019/12/17 20:39:48 UTC

[kudu-CR] [fs] fix compilation warnings with gcc4.9.2 on CentOS

Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/14918


Change subject: [fs] fix compilation warnings with gcc4.9.2 on CentOS
......................................................................

[fs] fix compilation warnings with gcc4.9.2 on CentOS

While compiling with GCC 4.9.2 and devtoolset, the warnings were:

devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/bits/unique_ptr.h:76:2: warning: delete called on non-final 'kudu::fs::DataDirManager' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
        delete __ptr;
        ^
devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/bits/unique_ptr.h:236:4: note: in instantiation of member function 'std::default_delete<kudu::fs::DataDirManager>::operator()' requested here
          get_deleter()(__ptr);
          ^

devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/bits/unique_ptr.h:76:2: warning: delete called on 'kudu::fs::Dir' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
        delete __ptr;
        ^
devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/bits/unique_ptr.h:236:4: note: in instantiation of member function 'std::default_delete<kudu::fs::Dir>::operator()' requested here
          get_deleter()(__ptr);
          ^

With this patch, the warnings are gone.
This patch doesn't contain any functional modifications.

Change-Id: I86dbe0ea88709fd79b350a4fca60c7ea1b913e4f
---
M src/kudu/fs/dir_manager.h
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/18/14918/1
-- 
To view, visit http://gerrit.cloudera.org:8080/14918
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86dbe0ea88709fd79b350a4fca60c7ea1b913e4f
Gerrit-Change-Number: 14918
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>

[kudu-CR] [fs] fix compilation warnings with gcc4.9.2 on CentOS

Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/14918 )

Change subject: [fs] fix compilation warnings with gcc4.9.2 on CentOS
......................................................................

[fs] fix compilation warnings with gcc4.9.2 on CentOS

While compiling with GCC 4.9.2 and devtoolset, the warnings were:

devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/bits/unique_ptr.h:76:2: warning: delete called on non-final 'kudu::fs::DataDirManager' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
        delete __ptr;
        ^
devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/bits/unique_ptr.h:236:4: note: in instantiation of member function 'std::default_delete<kudu::fs::DataDirManager>::operator()' requested here
          get_deleter()(__ptr);
          ^

devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/bits/unique_ptr.h:76:2: warning: delete called on 'kudu::fs::Dir' that is abstract but has non-virtual destructor [-Wdelete-abstract-non-virtual-dtor]
        delete __ptr;
        ^
devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/bits/unique_ptr.h:236:4: note: in instantiation of member function 'std::default_delete<kudu::fs::Dir>::operator()' requested here
          get_deleter()(__ptr);
          ^

With this patch, the warnings are gone.
This patch doesn't contain any functional modifications.

Change-Id: I86dbe0ea88709fd79b350a4fca60c7ea1b913e4f
Reviewed-on: http://gerrit.cloudera.org:8080/14918
Reviewed-by: Andrew Wong <aw...@cloudera.com>
Tested-by: Kudu Jenkins
---
M src/kudu/fs/dir_manager.h
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Andrew Wong: Looks good to me, approved
  Kudu Jenkins: Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/14918
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I86dbe0ea88709fd79b350a4fca60c7ea1b913e4f
Gerrit-Change-Number: 14918
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Volodymyr Verovkin <ve...@cloudera.com>

[kudu-CR] [fs] fix compilation warnings with gcc4.9.2 on CentOS

Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/14918 )

Change subject: [fs] fix compilation warnings with gcc4.9.2 on CentOS
......................................................................


Patch Set 1: Code-Review+2

Thanks for the fix!


-- 
To view, visit http://gerrit.cloudera.org:8080/14918
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I86dbe0ea88709fd79b350a4fca60c7ea1b913e4f
Gerrit-Change-Number: 14918
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Volodymyr Verovkin <ve...@cloudera.com>
Gerrit-Comment-Date: Tue, 17 Dec 2019 20:40:51 +0000
Gerrit-HasComments: No