1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Build: Add -Wdeprecated to recommended flags and fix new warnings

This commit is contained in:
reuk 2022-02-17 17:22:50 +00:00
parent fb1f94767d
commit 1d1d743b9f
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
23 changed files with 19 additions and 76 deletions

View file

@ -204,6 +204,9 @@ public:
throw std::runtime_error { "this was meant to happen" };
}
BadConstructor (const BadConstructor&) = default;
BadConstructor& operator= (const BadConstructor&) = delete;
~BadConstructor() noexcept { counts.destructions += 1; }
void operator()() const noexcept { counts.calls += 1; }

View file

@ -33,9 +33,10 @@ namespace dsp
template <typename Type>
struct SIMDRegister<Type>::ElementAccess
{
operator Type() const { return simd.get (idx); }
ElementAccess& operator= (Type scalar) noexcept { simd.set (idx, scalar); return *this; }
ElementAccess& operator= (ElementAccess& o) noexcept { return operator= ((Type) o); }
ElementAccess (const ElementAccess&) = default;
operator Type() const { return simd.get (idx); }
ElementAccess& operator= (Type scalar) noexcept { simd.set (idx, scalar); return *this; }
ElementAccess& operator= (const ElementAccess& o) noexcept { return operator= ((Type) o); }
private:
friend struct SIMDRegister;