1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 08:38:09 +00:00

Fix some compiler warning on unused variables

This commit is contained in:
jsteube 2017-07-07 00:30:42 +02:00
parent 94b565262a
commit 99f58f90a4

View File

@ -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