From 240d35976a2f1420d7e4f6b9ba9a8a4f43d4b210 Mon Sep 17 00:00:00 2001 From: Matt Palmer Date: Sat, 18 Apr 2020 12:18:18 +1000 Subject: [PATCH] Fix build warning in DEBUG mode Just a tiny cleanup to avoid an 'unused variable' warning when building with DEBUG=1. --- src/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend.c b/src/backend.c index 2843d6f71..8feaa2b4e 100644 --- a/src/backend.c +++ b/src/backend.c @@ -373,9 +373,9 @@ static bool opencl_test_instruction (hashcat_ctx_t *hashcat_ctx, cl_context cont OCL_PTR *ocl = (OCL_PTR *) backend_ctx->ocl; - const int fd_stderr = fileno (stderr); #ifndef DEBUG + const int fd_stderr = fileno (stderr); const int stderr_bak = dup (fd_stderr); #ifdef _WIN const int tmp = open ("NUL", O_WRONLY);