signal_handler() is unused on Windows and generates a warning. Confine it within "ifdef _WIN32" in order to reduce the compilation noise.
Signed-off-by: Antonio Quartulli <a...@unstable.cc> --- src/openvpn/sig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openvpn/sig.c b/src/openvpn/sig.c index eadd7109..9747c083 100644 --- a/src/openvpn/sig.c +++ b/src/openvpn/sig.c @@ -214,7 +214,7 @@ signal_restart_status(const struct signal_info *si) #endif /* ifdef ENABLE_MANAGEMENT */ } - +#ifndef _WIN32 /* normal signal handler, when we are in event loop */ static void signal_handler(const int signum) @@ -222,6 +222,7 @@ signal_handler(const int signum) throw_signal(signum); signal(signum, signal_handler); } +#endif /* set handlers for unix signals */ -- 2.34.1 _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel