Fix some old GCC compiler warnings
This commit is contained in:
+3
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
#define PROGNAME "hashcat"
|
||||
|
||||
#if defined (__unix__) || defined (__APPLE__)
|
||||
#if defined (__unix__) || defined (__APPLE__)
|
||||
#define _POSIX
|
||||
#elif defined (__WINNT__)
|
||||
#define _WIN 1
|
||||
@@ -16,9 +16,11 @@
|
||||
#error Your Operating System is not supported or detected
|
||||
#endif
|
||||
|
||||
#if defined (__BYTE_ORDER__) && defined (__ORDER_BIG_ENDIAN__)
|
||||
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
#error "compiling for big-endian architecture not supported"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
|
||||
@@ -59,4 +59,7 @@ bool hc_string_is_digit (const char *s);
|
||||
void hc_string_trim_trailing (char *s);
|
||||
void hc_string_trim_leading (char *s);
|
||||
|
||||
size_t hc_fread (void *ptr, size_t size, size_t nmemb, FILE *stream);
|
||||
void hc_fwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream);
|
||||
|
||||
#endif // _SHARED_H
|
||||
|
||||
Reference in New Issue
Block a user