mirror of
https://github.com/hashcat/hashcat.git
synced 2025-07-24 15:38:47 +00:00
move includes from terminal.c to terminal.h, hide build warnings on unrar when using clang
This commit is contained in:
parent
5ffbc5edc4
commit
3d28985f6b
@ -18,15 +18,16 @@
|
||||
#include <termios.h>
|
||||
#if defined (__APPLE__)
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/sysctl.h>
|
||||
#endif // __APPLE__
|
||||
#endif // _WIN
|
||||
|
||||
#if !defined (_WIN) && !defined (__CYGWIN__) && !defined (__MSYS__)
|
||||
#if defined (_POSIX)
|
||||
#include <sys/utsname.h>
|
||||
#if !defined (__linux__)
|
||||
#include <sys/sysctl.h>
|
||||
#endif // ! __linux__
|
||||
#endif // ! _WIN && | __CYGWIN__ && ! __MSYS__
|
||||
#if !defined (__APPLE__)
|
||||
#include <sys/sysinfo.h>
|
||||
#endif // ! __APPLE__
|
||||
#endif // _POSIX
|
||||
|
||||
void welcome_screen (hashcat_ctx_t *hashcat_ctx, const char *version_tag);
|
||||
void goodbye_screen (hashcat_ctx_t *hashcat_ctx, const time_t proc_start, const time_t proc_stop);
|
||||
|
@ -236,6 +236,8 @@ ifneq ($(CC),clang)
|
||||
CFLAGS_UNRAR += -Wno-class-memaccess
|
||||
CFLAGS_UNRAR += -Wno-misleading-indentation
|
||||
CFLAGS_UNRAR += -Wno-format-overflow
|
||||
else
|
||||
CFLAGS_UNRAR += -Wno-nontrivial-memcall
|
||||
endif
|
||||
CFLAGS_UNRAR += -Wno-missing-braces
|
||||
CFLAGS_UNRAR += -Wno-unused-variable
|
||||
|
@ -17,13 +17,6 @@
|
||||
#include "timer.h"
|
||||
#include "terminal.h"
|
||||
|
||||
#if defined (_POSIX)
|
||||
#include <sys/utsname.h>
|
||||
#if !defined (__APPLE__)
|
||||
#include <sys/sysinfo.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static const size_t MAXIMUM_EXAMPLE_HASH_LENGTH = 200;
|
||||
|
||||
static const size_t TERMINAL_LINE_LENGTH = 79;
|
||||
|
Loading…
Reference in New Issue
Block a user