1
mirror of https://github.com/hashcat/hashcat synced 2024-11-17 08:28:39 +01:00

Fix some clang compiler warnings

This commit is contained in:
Jens Steube 2016-01-14 21:45:11 +01:00
parent 76612ac031
commit f3b85a6363
3 changed files with 2 additions and 4 deletions

View File

@ -12600,7 +12600,7 @@ int main (int argc, char **argv)
for (uint i = 0; i < 32; i++) for (uint i = 0; i < 32; i++)
{ {
const uint opti_bit = 1 << i; const uint opti_bit = 1u << i;
if (opti_type & opti_bit) log_info ("* %s", stroptitype (opti_bit)); if (opti_type & opti_bit) log_info ("* %s", stroptitype (opti_bit));
} }

View File

@ -4,8 +4,6 @@
*/ */
#pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#pragma GCC diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wunused-function"
#include <rp_kernel_on_cpu.h> #include <rp_kernel_on_cpu.h>

View File

@ -2883,7 +2883,7 @@ uint32_t *hm_get_list_valid_adl_adapters (int iNumberAdapters, int *num_adl_adap
{ {
AdapterInfo info = lpAdapterInfo[i]; AdapterInfo info = lpAdapterInfo[i];
if ((info.strUDID == NULL) || (strlen (info.strUDID) < 1)) continue; if (strlen (info.strUDID) < 1) continue;
#ifdef WIN #ifdef WIN
if (info.iVendorID != 1002) continue; if (info.iVendorID != 1002) continue;