Equalizer: Ignore -Warray-bounds
This commit is contained in:
@@ -109,7 +109,14 @@ void Equalizer::ReloadSettings() {
|
||||
int count = s.beginReadArray("presets");
|
||||
for (int i = 0; i < count; ++i) {
|
||||
s.setArrayIndex(i);
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#endif
|
||||
AddPreset(s.value("name").toString(), s.value("params").value<Equalizer::Params>());
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
s.endArray();
|
||||
|
||||
|
||||
@@ -72,6 +72,11 @@ static const QRegularExpression kRegex_ALSA_PCM_Dev(u"^.*:.*DEV=.*"_s);
|
||||
#endif
|
||||
} // namespace
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#endif
|
||||
|
||||
BackendSettingsPage::BackendSettingsPage(SettingsDialog *dialog, const SharedPtr<Player> player, const SharedPtr<DeviceFinders> device_finders, QWidget *parent)
|
||||
: SettingsPage(dialog, parent),
|
||||
ui_(new Ui_BackendSettingsPage),
|
||||
@@ -757,3 +762,7 @@ void BackendSettingsPage::BufferDefaults() {
|
||||
ui_->spinbox_high_watermark->setValue(kDefaultBufferHighWatermark);
|
||||
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
@@ -74,6 +74,11 @@ constexpr int kProgressInterval = 500;
|
||||
constexpr int kMaxDestinationItems = 10;
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#endif
|
||||
|
||||
static bool ComparePresetsByName(const TranscoderPreset &left, const TranscoderPreset &right) {
|
||||
return left.name_ < right.name_;
|
||||
}
|
||||
@@ -493,3 +498,7 @@ QString TranscodeDialog::GetOutputFileName(const QString &input_filepath, const
|
||||
return output_filepath;
|
||||
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user