-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Fix MyRocks compile warnings-treated-as-errors on Fedora 30, gcc 9.1.1 #5553
Conversation
spetrunia
commented
Jul 9, 2019
- Provide assignment operator in CompactionStats
- Provide a copy constructor for FileDescriptor
- Remove std::move from "return std::move(t)" in BoundedQueue
- Provide assignment operator in CompactionStats - Provide a copy constructor for FileDescriptor - Remove std::move from "return std::move(t)" in BoundedQueue
See https://jira.mariadb.org/browse/MDEV-19740?focusedCommentId=130820&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-130820 for the compile errors and other details. |
re |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siying has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request has been merged in 6187661. |
fix the following issue: ``` ./db/version_edit.h:76:8: error: implicitly-declared ‘constexpr rocksdb::FileDescriptor::FileDescriptor(const rocksdb::FileDescriptor&)’ is deprecated [-Werror=deprecated-copy] 76 | struct FileMetaData { | ^~~~~~~~~~~~ ./db/version_edit.h:47:19: note: because ‘rocksdb::FileDescriptor’ has user-provided ‘rocksdb::FileDescriptor& rocksdb::FileDescriptor::operator=(const rocksdb::FileDescriptor&)’ 47 | FileDescriptor& operator=(const FileDescriptor& fd) { | ^~~~~~~~ In file included from /usr/include/c++/9/bits/stl_algobase.h:64, from /usr/include/c++/9/bits/char_traits.h:39, from /usr/include/c++/9/string:40, from ./db/builder.h:9, from db/builder.cc:10: /usr/include/c++/9/bits/stl_pair.h:312:51: note: synthesized method ‘rocksdb::FileMetaData::FileMetaData(const rocksdb::FileMetaData&)’ first required here 312 | : first(std::forward<_U1>(__x)), second(__y) { } | ^ cc1plus: all warnings being treated as errors make[1]: *** [Makefile:1892: db/builder.o] Error 1 make[1]: Leaving directory '/root/lkp-tests/tmp-pkg/rocksdb/src/rocksdb-5.15.10' ``` The community has sent a patch to fix this problem(facebook/rocksdb#5553), but there is no release corresponding version, so download the code of the main branch first. Signed-off-by: Zhou Hao <haox.a.zhou@intel.com> Signed-off-by: Philip Li <philip.li@intel.com>
fix the following issue: ``` ./db/version_edit.h:76:8: error: implicitly-declared ‘constexpr rocksdb::FileDescriptor::FileDescriptor(const rocksdb::FileDescriptor&)’ is deprecated [-Werror=deprecated-copy] 76 | struct FileMetaData { | ^~~~~~~~~~~~ ./db/version_edit.h:47:19: note: because ‘rocksdb::FileDescriptor’ has user-provided ‘rocksdb::FileDescriptor& rocksdb::FileDescriptor::operator=(const rocksdb::FileDescriptor&)’ 47 | FileDescriptor& operator=(const FileDescriptor& fd) { | ^~~~~~~~ In file included from /usr/include/c++/9/bits/stl_algobase.h:64, from /usr/include/c++/9/bits/char_traits.h:39, from /usr/include/c++/9/string:40, from ./db/builder.h:9, from db/builder.cc:10: /usr/include/c++/9/bits/stl_pair.h:312:51: note: synthesized method ‘rocksdb::FileMetaData::FileMetaData(const rocksdb::FileMetaData&)’ first required here 312 | : first(std::forward<_U1>(__x)), second(__y) { } | ^ cc1plus: all warnings being treated as errors make[1]: *** [Makefile:1892: db/builder.o] Error 1 make[1]: Leaving directory '/root/lkp-tests/tmp-pkg/rocksdb/src/rocksdb-5.15.10' ``` The community has sent a patch to fix this problem(facebook/rocksdb#5553), but there is no release corresponding version, so download the code of the main branch first. Signed-off-by: Zhou Hao <haox.a.zhou@intel.com> Signed-off-by: Philip Li <philip.li@intel.com>
facebook#5553) Summary: - Provide assignment operator in CompactionStats - Provide a copy constructor for FileDescriptor - Remove std::move from "return std::move(t)" in BoundedQueue Pull Request resolved: facebook#5553 Differential Revision: D16230170 fbshipit-source-id: fd7c6e52390b2db1be24141e25649cf62424d078 Signed-off-by: Yi Wu <yiwu@pingcap.com>
facebook#5553) Fixes #66 This is a cherry-pick from Facebook's master. Summary: - Provide assignment operator in CompactionStats - Provide a copy constructor for FileDescriptor - Remove std::move from "return std::move(t)" in BoundedQueue Pull Request resolved: facebook#5553 Differential Revision: D16230170 fbshipit-source-id: fd7c6e52390b2db1be24141e25649cf62424d078
Fix MyRocks compile warnings-treated-as-errors on Fedora 30, gcc 9.1.1 (facebook#5553)
facebook#5553) Summary: - Provide assignment operator in CompactionStats - Provide a copy constructor for FileDescriptor - Remove std::move from "return std::move(t)" in BoundedQueue Pull Request resolved: facebook#5553 Differential Revision: D16230170 fbshipit-source-id: fd7c6e52390b2db1be24141e25649cf62424d078
…1 (#5553) Summary: - Provide assignment operator in CompactionStats - Provide a copy constructor for FileDescriptor - Remove std::move from "return std::move(t)" in BoundedQueue Pull Request resolved: facebook/rocksdb#5553 Differential Revision: D16230170 fbshipit-source-id: fd7c6e52390b2db1be24141e25649cf62424d078