Fix warnings in Clang build (#6893)
* Fix unused variable warning * Fix implicit conversion warning * Fix unused lambda capture in DataFile.cpp * Fix implicit conversions in InstrumentFunctions.cpp * Fix operator precedence bug in Flags.h * Fix unused variable warning in Lv2UridMap.h * Fix unused lambda capture in MixerView.cpp * Fix unused lambda captures in SetupDialog.cpp * Fix unused lambda capture in TrackOperationsWidget.cpp * Fix MSVC build * Fix style * Remove unused member variable in Lv2UridMap.h
This commit is contained in:
@@ -48,8 +48,8 @@ public:
|
||||
m_value{value}
|
||||
{}
|
||||
|
||||
constexpr auto testAll(Flags flags) const -> bool { return *this & flags == flags; }
|
||||
constexpr auto testAny(Flags flags) const -> bool { return *this & flags != Flags{}; }
|
||||
constexpr auto testAll(Flags flags) const -> bool { return (*this & flags) == flags; }
|
||||
constexpr auto testAny(Flags flags) const -> bool { return (*this & flags) != Flags{}; }
|
||||
constexpr auto testFlag(EnumType flag) const -> bool { return static_cast<bool>(*this & flag); }
|
||||
|
||||
constexpr auto operator~() const -> Flags { return Flags{~m_value}; }
|
||||
|
||||
@@ -55,8 +55,6 @@ class UridMap
|
||||
LV2_URID_Map m_mapFeature;
|
||||
LV2_URID_Unmap m_unmapFeature;
|
||||
|
||||
LV2_URID m_lastUrid = 0;
|
||||
|
||||
public:
|
||||
//! constructor; will set up the features
|
||||
UridMap();
|
||||
|
||||
@@ -212,7 +212,7 @@ private:
|
||||
int32_t m_sysExDataLen; // len of m_sysExData
|
||||
} m_data;
|
||||
|
||||
const char* m_sysExData;
|
||||
[[maybe_unused]] const char* m_sysExData;
|
||||
const void* m_sourcePort;
|
||||
|
||||
// Stores the source of the MidiEvent: Internal or External (hardware controllers).
|
||||
|
||||
Reference in New Issue
Block a user