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:
parent
7eef713ff7
commit
e3a245f615
@ -107,6 +107,7 @@ CFLAGS += -Wundef
|
||||
CFLAGS += -Wshadow
|
||||
CFLAGS += -Wmissing-declarations
|
||||
CFLAGS += -Wmissing-prototypes
|
||||
CFLAGS += -Wpointer-arith
|
||||
CFLAGS += -ftrapv
|
||||
|
||||
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 void *next = base + (c * size);
|
||||
const char *next = (char *) base + (c * size);
|
||||
|
||||
const int cmp = (*compar) (key, next, arg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user