From e7c0354185cb2af3800ce702804829af1c3e6577 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 19 Nov 2021 22:17:29 -0800 Subject: [PATCH] sfio: squash -Wunused-variable on platforms without SIGPIPE This warning, for example, is triggered in Mingw builds. --- lib/sfio/sfmode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sfio/sfmode.c b/lib/sfio/sfmode.c index 51bc85383..2ded6d3d7 100644 --- a/lib/sfio/sfmode.c +++ b/lib/sfio/sfmode.c @@ -37,7 +37,9 @@ /* the below is for protecting the application from SIGPIPE */ #include typedef void (*Sfsignal_f) (int); +#ifdef SIGPIPE static int _Sfsigp = 0; /* # of streams needing SIGPIPE protection */ +#endif /* done at exiting time */ static void _sfcleanup(void) -- 2.40.0