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:
parent
7eef713ff7
commit
e3a245f615
@ -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 :=
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user