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 /unix/vncserver | |
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 'unix/vncserver')
-rw-r--r-- | unix/vncserver/vncsession.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unix/vncserver/vncsession.c b/unix/vncserver/vncsession.c index 49d68435..db3f9fe8 100644 --- a/unix/vncserver/vncsession.c +++ b/unix/vncserver/vncsession.c @@ -142,6 +142,7 @@ finish_daemon(void) static void sighandler(int sig) { + (void)sig; if (script > 0) { kill(script, SIGTERM); } @@ -169,6 +170,10 @@ conv(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) { + (void)num_msg; + (void)msg; + (void)resp; + (void)appdata_ptr; /* Opening a session should not require a conversation */ return PAM_CONV_ERR; } |