From 99f58f90a407b79784fa64cccd14d284255bdc40 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 7 Jul 2017 00:30:42 +0200 Subject: [PATCH] Fix some compiler warning on unused variables --- src/opencl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opencl.c b/src/opencl.c index 3107310c4..241544dab 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -3295,6 +3295,7 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime) { bool amd_warn = true; + #if defined (__linux__) const char *t1 = strstr (device_param->driver_version, "(HSA,LC)"); const char *t2 = strstr (device_param->driver_version, "(PAL,LC)"); const char *t3 = strstr (device_param->driver_version, "(PAL,HSAIL)"); @@ -3302,7 +3303,6 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime) const char *t5 = strstr (device_param->driver_version, "(PAL, LC)"); const char *t6 = strstr (device_param->driver_version, "(PAL, HSAIL)"); - #if defined (__linux__) if ((t1 == NULL) && (t2 == NULL) && (t3 == NULL) && (t4 == NULL) && (t5 == NULL) && (t6 == NULL)) { // AMDGPU-PRO Driver 16.40 and higher