From 64f12b4f6a43c71d803db7991fd153821dd6b2e9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 10 Jan 2022 17:58:56 -0600 Subject: [PATCH] Shut up an unused variable warning triggered by an #ifdef. --- lib/portability.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/portability.c b/lib/portability.c index a175b3462..5f98138c6 100644 --- a/lib/portability.c +++ b/lib/portability.c @@ -475,8 +475,8 @@ int sig_to_num(char *sigstr) char *s; // Numeric? - i = estrtol(sigstr, &s, 10); - if (!errno && !*s) return i; + offset = estrtol(sigstr, &s, 10); + if (!errno && !*s) return offset; // Skip leading "SIG". strcasestart(&sigstr, "sig");