[libglnx/wip/smcv/warnings: 1/7] console: Mark an unused parameter as such




commit f8b7343a29ffae3906d616dc4f6fa4185341e159
Author: Simon McVittie <smcv collabora com>
Date:   Sun Apr 24 11:02:09 2022 +0100

    console: Mark an unused parameter as such
    
    This signal handler is only called for SIGWINCH, so it doesn't need
    to look at its parameter.
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 glnx-console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glnx-console.c b/glnx-console.c
index 3ce2452..f6ce0d4 100644
--- a/glnx-console.c
+++ b/glnx-console.c
@@ -143,7 +143,7 @@ glnx_console_lines (void)
 }
 
 static void
-on_sigwinch (int signum)
+on_sigwinch (G_GNUC_UNUSED int signum)
 {
   cached_columns = 0;
   cached_lines = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]