1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 15:38:11 +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 += -Wshadow
CFLAGS += -Wmissing-declarations CFLAGS += -Wmissing-declarations
CFLAGS += -Wmissing-prototypes CFLAGS += -Wmissing-prototypes
CFLAGS += -Wpointer-arith
CFLAGS += -ftrapv CFLAGS += -ftrapv
LFLAGS := 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 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); const int cmp = (*compar) (key, next, arg);