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/ServerDialog.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/ServerDialog.cxx')
-rw-r--r-- | vncviewer/ServerDialog.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vncviewer/ServerDialog.cxx b/vncviewer/ServerDialog.cxx index 54c34b4f..6a4dcfc9 100644 --- a/vncviewer/ServerDialog.cxx +++ b/vncviewer/ServerDialog.cxx @@ -157,13 +157,13 @@ void ServerDialog::run(const char* servername, char *newservername) newservername[VNCSERVERNAMELEN - 1] = '\0'; } -void ServerDialog::handleOptions(Fl_Widget *widget, void *data) +void ServerDialog::handleOptions(Fl_Widget* /*widget*/, void* /*data*/) { OptionsDialog::showDialog(); } -void ServerDialog::handleLoad(Fl_Widget *widget, void *data) +void ServerDialog::handleLoad(Fl_Widget* /*widget*/, void* data) { ServerDialog *dialog = (ServerDialog*)data; @@ -201,7 +201,7 @@ void ServerDialog::handleLoad(Fl_Widget *widget, void *data) } -void ServerDialog::handleSaveAs(Fl_Widget *widget, void *data) +void ServerDialog::handleSaveAs(Fl_Widget* /*widget*/, void* data) { ServerDialog *dialog = (ServerDialog*)data; const char* servername = dialog->serverName->value(); @@ -261,13 +261,13 @@ void ServerDialog::handleSaveAs(Fl_Widget *widget, void *data) } -void ServerDialog::handleAbout(Fl_Widget *widget, void *data) +void ServerDialog::handleAbout(Fl_Widget* /*widget*/, void* /*data*/) { about_vncviewer(); } -void ServerDialog::handleCancel(Fl_Widget *widget, void *data) +void ServerDialog::handleCancel(Fl_Widget* /*widget*/, void* data) { ServerDialog *dialog = (ServerDialog*)data; @@ -276,7 +276,7 @@ void ServerDialog::handleCancel(Fl_Widget *widget, void *data) } -void ServerDialog::handleConnect(Fl_Widget *widget, void *data) +void ServerDialog::handleConnect(Fl_Widget* /*widget*/, void *data) { ServerDialog *dialog = (ServerDialog*)data; const char* servername = dialog->serverName->value(); |