Closed laurynas-biveinis closed 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
@sunshine-Chun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
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