Codechange: Silence warnings about intentionally unused parameters.

This commit is contained in:
frosch
2023-09-16 22:20:53 +02:00
committed by frosch
parent df400ef84a
commit b6c8f301be
227 changed files with 972 additions and 1039 deletions

View File

@@ -634,7 +634,7 @@ NSView *VideoDriver_CocoaQuartz::AllocateDrawView()
}
/** Resize the window. */
void VideoDriver_CocoaQuartz::AllocateBackingStore(bool force)
void VideoDriver_CocoaQuartz::AllocateBackingStore(bool)
{
if (this->window == nil || this->cocoaview == nil || this->setup) return;

View File

@@ -103,7 +103,7 @@ extern bool SafeLoad(const std::string &filename, SaveLoadOperation fop, Detaile
static FVideoDriver_Dedicated iFVideoDriver_Dedicated;
const char *VideoDriver_Dedicated::Start(const StringList &parm)
const char *VideoDriver_Dedicated::Start(const StringList &)
{
this->UpdateAutoResolution();
@@ -140,9 +140,9 @@ void VideoDriver_Dedicated::Stop()
free(_dedicated_video_mem);
}
void VideoDriver_Dedicated::MakeDirty(int left, int top, int width, int height) {}
bool VideoDriver_Dedicated::ChangeResolution(int w, int h) { return false; }
bool VideoDriver_Dedicated::ToggleFullscreen(bool fs) { return false; }
void VideoDriver_Dedicated::MakeDirty(int, int, int, int) {}
bool VideoDriver_Dedicated::ChangeResolution(int, int) { return false; }
bool VideoDriver_Dedicated::ToggleFullscreen(bool) { return false; }
#if defined(UNIX)
static bool InputWaiting()

View File

@@ -42,7 +42,7 @@ const char *VideoDriver_Null::Start(const StringList &parm)
void VideoDriver_Null::Stop() { }
void VideoDriver_Null::MakeDirty(int left, int top, int width, int height) {}
void VideoDriver_Null::MakeDirty(int, int, int, int) {}
void VideoDriver_Null::MainLoop()
{
@@ -61,6 +61,6 @@ void VideoDriver_Null::MainLoop()
}
}
bool VideoDriver_Null::ChangeResolution(int w, int h) { return false; }
bool VideoDriver_Null::ChangeResolution(int, int) { return false; }
bool VideoDriver_Null::ToggleFullscreen(bool fs) { return false; }
bool VideoDriver_Null::ToggleFullscreen(bool) { return false; }

View File

@@ -405,7 +405,7 @@ static bool BindPersistentBufferExtensions()
}
/** Callback to receive OpenGL debug messages. */
void APIENTRY DebugOutputCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam)
void APIENTRY DebugOutputCallback([[maybe_unused]] GLenum source, GLenum type, [[maybe_unused]] GLuint id, GLenum severity, [[maybe_unused]] GLsizei length, const GLchar *message, [[maybe_unused]] const void *userParam)
{
/* Make severity human readable. */
const char *severity_str = "";

View File

@@ -70,7 +70,7 @@ public:
* Change the vsync setting.
* @param vsync The new setting.
*/
virtual void ToggleVsync(bool vsync) {}
virtual void ToggleVsync([[maybe_unused]] bool vsync) {}
/**
* Callback invoked after the blitter was changed.

View File

@@ -934,7 +934,7 @@ void VideoDriver_Win32Base::EditBoxLostFocus()
SetCandidatePos(this->main_wnd);
}
static BOOL CALLBACK MonitorEnumProc(HMONITOR hMonitor, HDC hDC, LPRECT rc, LPARAM data)
static BOOL CALLBACK MonitorEnumProc(HMONITOR hMonitor, HDC, LPRECT, LPARAM data)
{
auto &list = *reinterpret_cast<std::vector<int>*>(data);

View File

@@ -157,7 +157,7 @@ protected:
bool AllocateBackingStore(int w, int h, bool force = false) override;
void *GetVideoPointer() override;
void ReleaseVideoPointer() override;
void PaletteChanged(HWND hWnd) override {}
void PaletteChanged(HWND) override {}
const char *AllocateContext();
void DestroyContext();