Misc (re #2504): Suppress some compile warnings on Linux

This commit is contained in:
nanangizz 2021-03-08 15:00:53 +07:00
parent 63d120f441
commit 681b1f34a9
3 changed files with 12 additions and 2 deletions

View File

@ -1533,7 +1533,6 @@ static pj_status_t set_cipher_list(pj_ssl_sock_t *ssock)
char *buf = NULL;
enum { BUF_SIZE = 8192 };
pj_str_t cipher_list;
STACK_OF(SSL_CIPHER) *sk_cipher;
unsigned i;
int j, ret;

View File

@ -27,6 +27,11 @@ Notes:
#if defined(_MSC_VER)
# pragma warning(disable:4996) // This function or variable may be unsafe.
#endif
#if defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wmemset-elt-size"
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif
--
* Modify compare_row.h:
@ -35,4 +40,4 @@ Notes:
diff += __popcnt(x);
--------------------------------------------------------------------------------------
So, we use the default method HammingDistance_C() to calculate Hamming Distance.

View File

@ -26,6 +26,12 @@
# pragma warning(disable:4996) // This function or variable may be unsafe.
#endif
#if defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wmemset-elt-size"
# pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif
#ifndef GG_LONGLONG
#ifndef INT_TYPES_DEFINED
#define INT_TYPES_DEFINED