From 3a1c46ff751a96dfdc721190a93be3954929725e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 4 Jan 2023 16:18:46 +0100 Subject: 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. --- unix/vncserver/vncsession.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unix/vncserver') 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; } -- cgit v1.2.3