1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-13 19:28:56 +00:00

Fix compiler warnings caused by -Wpointer-arith

This commit is contained in:
jsteube 2016-10-30 20:39:27 +01:00
parent 7eef713ff7
commit e3a245f615
2 changed files with 2 additions and 1 deletions

View File

@ -107,6 +107,7 @@ CFLAGS += -Wundef
CFLAGS += -Wshadow
CFLAGS += -Wmissing-declarations
CFLAGS += -Wmissing-prototypes
CFLAGS += -Wpointer-arith
CFLAGS += -ftrapv
LFLAGS :=

View File

@ -127,7 +127,7 @@ void *hc_bsearch_r (const void *key, const void *base, size_t nmemb, size_t size
const size_t c = l + m;
const void *next = base + (c * size);
const char *next = (char *) base + (c * size);
const int cmp = (*compar) (key, next, arg);