facebook / mysql-5.6

Facebook's branch of the Oracle MySQL database. This includes MyRocks.
http://myrocks.io
Other
2.48k stars 712 forks source link

Bug #34638573 Compile MySQL with clang 15 #1302

Closed laurynas-biveinis closed 1 year ago

laurynas-biveinis commented 1 year ago

Clang 15 comes with a few new warnings:

variable 'cnt' set but not used -Wunused-but-set-variable

argument 'ptr' of type 'const LinearSectionPtr[3]' with mismatched bound -Warray-parameter

out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated -Wdeprecated

unqualified call to 'std::move' -Wunqualified-std-cast-call

builtin has_trivial_copy is deprecated; use is_trivially_copyable instead -Wdeprecated-builtins

Fix these, to get a clean build also with Clang 15.

Change-Id: I315b7b77e2bf3a6bacf091aeb8887d0902d3f950

facebook-github-bot commented 1 year ago

@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.