Codechange: Silence warnings about intentionally unused parameters.
This commit is contained in:
@@ -130,7 +130,7 @@ struct GSConfigWindow : public Window {
|
||||
this->vscroll->SetCount(this->visible_settings.size());
|
||||
}
|
||||
|
||||
void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) override
|
||||
void UpdateWidgetSize(int widget, Dimension *size, [[maybe_unused]] const Dimension &padding, [[maybe_unused]] Dimension *fill, [[maybe_unused]] Dimension *resize) override
|
||||
{
|
||||
switch (widget) {
|
||||
case WID_GSC_SETTINGS:
|
||||
@@ -238,7 +238,7 @@ struct GSConfigWindow : public Window {
|
||||
this->DrawWidgets();
|
||||
}
|
||||
|
||||
void OnClick(Point pt, int widget, int click_count) override
|
||||
void OnClick([[maybe_unused]] Point pt, int widget, [[maybe_unused]] int click_count) override
|
||||
{
|
||||
if (widget >= WID_GSC_TEXTFILE && widget < WID_GSC_TEXTFILE + TFT_CONTENT_END) {
|
||||
if (GameConfig::GetConfig() == nullptr) return;
|
||||
@@ -371,7 +371,7 @@ struct GSConfigWindow : public Window {
|
||||
SetValue(index);
|
||||
}
|
||||
|
||||
void OnDropdownClose(Point pt, int widget, int index, bool instant_close) override
|
||||
void OnDropdownClose(Point, int widget, int, bool) override
|
||||
{
|
||||
/* We cannot raise the dropdown button just yet. OnClick needs some hint, whether
|
||||
* the same dropdown button was clicked again, and then not open the dropdown again.
|
||||
@@ -398,7 +398,7 @@ struct GSConfigWindow : public Window {
|
||||
* @param data Information about the changed data.
|
||||
* @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details.
|
||||
*/
|
||||
void OnInvalidateData(int data = 0, bool gui_scope = true) override
|
||||
void OnInvalidateData([[maybe_unused]] int data = 0, [[maybe_unused]] bool gui_scope = true) override
|
||||
{
|
||||
if (!gui_scope) return;
|
||||
|
||||
|
@@ -121,7 +121,7 @@ struct TranslationWriter : LanguageWriter {
|
||||
{
|
||||
}
|
||||
|
||||
void WriteHeader(const LanguagePackHeader *header)
|
||||
void WriteHeader(const LanguagePackHeader *)
|
||||
{
|
||||
/* We don't use the header. */
|
||||
}
|
||||
@@ -131,7 +131,7 @@ struct TranslationWriter : LanguageWriter {
|
||||
/* Nothing to do. */
|
||||
}
|
||||
|
||||
void WriteLength(uint length)
|
||||
void WriteLength(uint)
|
||||
{
|
||||
/* We don't write the length. */
|
||||
}
|
||||
@@ -159,7 +159,7 @@ struct StringNameWriter : HeaderWriter {
|
||||
if (stringid == (int)this->strings.size()) this->strings.emplace_back(name);
|
||||
}
|
||||
|
||||
void Finalise(const StringData &data)
|
||||
void Finalise(const StringData &)
|
||||
{
|
||||
/* Nothing to do. */
|
||||
}
|
||||
@@ -185,7 +185,7 @@ public:
|
||||
this->FileScanner::Scan(".txt", directory, false);
|
||||
}
|
||||
|
||||
bool AddFile(const std::string &filename, size_t basepath_length, const std::string &tar_filename) override
|
||||
bool AddFile(const std::string &filename, size_t, const std::string &) override
|
||||
{
|
||||
if (exclude == filename) return true;
|
||||
|
||||
|
Reference in New Issue
Block a user