1
0
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:
Gabriele Gristina 2025-07-09 17:41:14 +02:00
parent 5ffbc5edc4
commit 3d28985f6b
No known key found for this signature in database
GPG Key ID: 9F68B59298F311F0
3 changed files with 8 additions and 12 deletions

View File

@ -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);

View File

@ -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

View File

@ -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;