Fix some old GCC compiler warnings

This commit is contained in:
jsteube
2017-07-06 10:35:25 +02:00
parent 819b53eb1d
commit 8abd7ae9d1
23 changed files with 86 additions and 62 deletions
+3 -1
View File
@@ -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
+3
View File
@@ -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