mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-20 15:08:51 +00:00
gcc: disable picky gcc-8 function pointer warnings
This commit is contained in:
parent
60ee3e49e7
commit
7672c49f7e
@ -95,6 +95,17 @@ but this is nededed for VS compiler which doesn't have inline keyword but has __
|
|||||||
#define STAT_NANOSECONDS_ACCESS_TIME st_atimespec.tv_nsec
|
#define STAT_NANOSECONDS_ACCESS_TIME st_atimespec.tv_nsec
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable this picky gcc-8 compiler warning
|
||||||
|
* We're in good company:
|
||||||
|
* https://github.com/curl/curl/blob/fc3743c31bb3c84e31a2eff99e958337571eb5f0/lib/md5.c#L487-L490
|
||||||
|
* https://github.com/kivadiu/thread/blob/ee607c86d4acd1d7733304526eb25d742b533071/src/win32/thread_primitives.cpp#L105-L113
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined (__GNUC__) && (__GNUC__ >= 8)
|
||||||
|
#pragma GCC diagnostic ignored "-Wcast-function-type"
|
||||||
|
#endif
|
||||||
|
|
||||||
// config section
|
// config section
|
||||||
// do not try to simply change this, it will not work
|
// do not try to simply change this, it will not work
|
||||||
|
|
||||||
|
@ -169,7 +169,6 @@ ifeq ($(PRODUCTION),0)
|
|||||||
CFLAGS += -W
|
CFLAGS += -W
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
CFLAGS += -Wextra
|
CFLAGS += -Wextra
|
||||||
CFLAGS += -Wno-cast-function-type
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
## because LZMA SDK
|
## because LZMA SDK
|
||||||
|
Loading…
Reference in New Issue
Block a user