mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-16 17:42:04 +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
|
||||
#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
|
||||
// do not try to simply change this, it will not work
|
||||
|
||||
|
@ -169,7 +169,6 @@ ifeq ($(PRODUCTION),0)
|
||||
CFLAGS += -W
|
||||
CFLAGS += -Wall
|
||||
CFLAGS += -Wextra
|
||||
CFLAGS += -Wno-cast-function-type
|
||||
endif
|
||||
|
||||
## because LZMA SDK
|
||||
|
Loading…
Reference in New Issue
Block a user