diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-04 16:18:46 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-01-04 19:17:28 +0100 |
commit | 3a1c46ff751a96dfdc721190a93be3954929725e (patch) | |
tree | b4b60c322545aaee22506f1071048ad5a604b123 /vncviewer/touch.cxx | |
parent | 225e1516f9cc5d2318e9a9cd7b84b69b0f150e43 (diff) | |
download | tigervnc-3a1c46ff751a96dfdc721190a93be3954929725e.tar.gz tigervnc-3a1c46ff751a96dfdc721190a93be3954929725e.zip |
Explicitly mark unused parameters
This allows us to separate accidentally unused, from explicitly unused
parameters, which allows us to turn on such checks in the compiler.
Diffstat (limited to 'vncviewer/touch.cxx')
-rw-r--r-- | vncviewer/touch.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vncviewer/touch.cxx b/vncviewer/touch.cxx index 5ba9d108..d4f4098a 100644 --- a/vncviewer/touch.cxx +++ b/vncviewer/touch.cxx @@ -61,8 +61,9 @@ static HandlerMap handlers; #if defined(WIN32) LRESULT CALLBACK win32WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, - LPARAM lParam, UINT_PTR uIdSubclass, - DWORD_PTR dwRefData) + LPARAM lParam, + UINT_PTR /*uIdSubclass*/, + DWORD_PTR /*dwRefData*/) { bool handled = false; @@ -168,7 +169,7 @@ void x11_ungrab_pointer(Window window) } #endif -static int handleTouchEvent(void *event, void *data) +static int handleTouchEvent(void *event, void* /*data*/) { #if defined(WIN32) MSG *msg = (MSG*)event; @@ -189,7 +190,10 @@ static int handleTouchEvent(void *event, void *data) (int)GetLastError()); } } -#elif !defined(__APPLE__) +#elif defined(__APPLE__) + // No touch support on macOS + (void)event; +#else XEvent *xevent = (XEvent*)event; if (xevent->type == MapNotify) { |