-
Notifications
You must be signed in to change notification settings - Fork 713
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 clang-5+ and gcc-5+ compilation issues #1076
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ```
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.
@hermanlee has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
facebook-github-bot
pushed a commit
that referenced
this pull request
Jan 10, 2020
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: #1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Jul 1, 2020
Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Jul 1, 2020
Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Jul 3, 2020
Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 13, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 26, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 26, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 27, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Sep 7, 2020
Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Sep 9, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Sep 10, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Sep 10, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Sep 11, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Sep 16, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Oct 5, 2020
Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Oct 5, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Nov 11, 2020
…#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lth Differential Revision: D19301431 Pulled By: lth fbshipit-source-id: d302e8d
facebook-github-bot
pushed a commit
that referenced
this pull request
Mar 8, 2021
…1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: #1076 Reviewed By: lloyd Differential Revision: D19301431 (42a3a73) Pulled By: lth fbshipit-source-id: b99b6c99a20
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 17, 2021
…#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 (facebook@42a3a73) Pulled By: lth fbshipit-source-id: b99b6c99a20
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 17, 2021
…#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 (facebook@42a3a73) Pulled By: lth fbshipit-source-id: b99b6c99a20
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 30, 2021
…#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 (facebook@42a3a73) Pulled By: lth fbshipit-source-id: b99b6c99a20
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 30, 2021
…#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 (facebook@42a3a73) Pulled By: lth fbshipit-source-id: b99b6c99a20
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 31, 2021
…#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 (facebook@42a3a73) Pulled By: lth fbshipit-source-id: b99b6c99a20
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 31, 2021
…#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 (facebook@42a3a73) Pulled By: lth fbshipit-source-id: b99b6c99a20
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 31, 2021
…#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 (facebook@42a3a73) Pulled By: lth fbshipit-source-id: b99b6c99a20
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Mar 31, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Mar 31, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Mar 31, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 1, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 1, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 4, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 4, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 4, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 5, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 6, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 6, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 7, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 8, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 11, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 11, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 12, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 12, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 13, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 13, 2022
…es (facebook#1076) (facebook#1076) Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
May 20, 2022
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
May 23, 2022
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
hermanlee
pushed a commit
that referenced
this pull request
Aug 2, 2022
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: #1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Mar 25, 2023
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Mar 28, 2023
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Mar 28, 2023
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Apr 15, 2023
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Jun 1, 2023
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Jun 14, 2023
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/percona-server
that referenced
this pull request
Apr 9, 2024
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook/mysql-5.6#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
inikep
added a commit
to inikep/mysql-5.6
that referenced
this pull request
Aug 2, 2024
Summary: 1. Suppress warnings only if compiler supports "-Wno-xxxxxx". 2. Fix issues described at https://jira.percona.com/browse/PS-6054 and https://jira.percona.com/browse/PS-6058 3. Fix linking issues for clang-7 and clang-8: ``` /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 9 refers to earlier section 3 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 10 refers to earlier section 4 /usr/bin/ld.gold: error: /usr/lib/llvm-8/lib/clang/8.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(FuzzerDataFlowTrace.cpp.o): invalid section group 11 refers to earlier section 5 ``` 4. Fix `-Werror=ignored-qualifiers` warnings e.g. ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:882:70: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers] 882 | static_cast<const rocksdb::InfoLogLevel>(rocksdb_info_log_level)); ``` 5. Fix a `-Wundefined-reinterpret-cast` warning: ``` /fb-8.0.17/storage/rocksdb/ha_rocksdb.cc:3777:11: error: dereference of type 'myrocks::Rdb_transaction **' that was reinterpret_cast from type 'void **' has undefined behavior [-Werror,-Wundefined-reinterpret-cast] return *reinterpret_cast<Rdb_transaction **>( ``` 6. Fix a `-Werror=attributes` warning: ``` /fb-8.0.17/include/my_compiler.h:100:40: error: ‘nonnull’ attribute only applies to function types [-Werror=attributes] 100 | #define MY_ATTRIBUTE(A) __attribute__(A) ``` 7. Fix ``` /fb-8.0.17/sql/dd/impl/types/schema_impl.cc:100:1: error: base class ‘class dd::Weak_object’ should be explicitly initialized in the copy constructor [-Werror=extra] Schema_impl::Schema_impl(const Schema_impl &src) ``` Pull Request resolved: facebook#1076 Reviewed By: lloyd Differential Revision: D19301431 Pulled By: lth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
-Werror=ignored-qualifiers
warnings e.g.-Wundefined-reinterpret-cast
warning:-Werror=attributes
warning: