libressl/portable

3.8.2 unused variable 'savsig' [-Wunused-variable] on Windows

Closed this issue · 1 comments

./libressl/crypto/ui/ui_openssl_win.c:134:15: warning: unused variable 'savsig' [-Wunused-variable]
  134 | static void (*savsig[NX509_SIG])(int );
      |               ^~~~~~
1 warning generated.

This variable appears unused, so this could be a fix:

--- a/ui_openssl_win.c	2023-11-03 15:08:28.468746666 +0000
+++ b/ui_openssl_win.c	2023-11-03 15:08:31.728355601 +0000
@@ -130,9 +130,6 @@
 #define NX509_SIG 32
 #endif
 
-/* Define globals.  They are protected by a lock */
-static void (*savsig[NX509_SIG])(int );
-
 DWORD console_mode;
 static FILE *tty_in, *tty_out;
 static int is_a_tty;