mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
make macros for pragma to compile with gcc11
This commit is contained in:
@ -14458,13 +14458,9 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* myBuffer may not initialized fully, but the sending length will be */
|
/* myBuffer may not initialized fully, but the sending length will be */
|
||||||
#if defined(__GNUC__) && __GNUC__ > 5
|
PRAGMA_GCC_IGNORE("GCC diagnostic ignored \"-Wmaybe-uninitialized\"");
|
||||||
_Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"");
|
|
||||||
#endif
|
|
||||||
ret = wolfSSL_write(ssl, myBuffer, sending);
|
ret = wolfSSL_write(ssl, myBuffer, sending);
|
||||||
#if defined(__GNUC__) && __GNUC__ > 5
|
PRAGMA_GCC_POP;
|
||||||
_Pragma("GCC diagnostic pop");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (dynamic)
|
if (dynamic)
|
||||||
XFREE(myBuffer, ssl->heap, DYNAMIC_TYPE_WRITEV);
|
XFREE(myBuffer, ssl->heap, DYNAMIC_TYPE_WRITEV);
|
||||||
|
@ -437,15 +437,11 @@ static int DeriveKey(WOLFSSL* ssl, byte* output, int outputLen,
|
|||||||
hashOutSz = hashSz;
|
hashOutSz = hashSz;
|
||||||
|
|
||||||
/* myBuffer may not initialized fully, but the sending length will be */
|
/* myBuffer may not initialized fully, but the sending length will be */
|
||||||
#if defined(__GNUC__) && __GNUC__ > 5
|
PRAGMA_GCC_IGNORE("GCC diagnostic ignored \"-Wmaybe-uninitialized\"");
|
||||||
_Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"");
|
|
||||||
#endif
|
|
||||||
return HKDF_Expand_Label(output, outputLen, secret, hashSz,
|
return HKDF_Expand_Label(output, outputLen, secret, hashSz,
|
||||||
protocol, protocolLen, label, labelLen,
|
protocol, protocolLen, label, labelLen,
|
||||||
hash, hashOutSz, digestAlg);
|
hash, hashOutSz, digestAlg);
|
||||||
#if defined(__GNUC__) && __GNUC__ > 5
|
PRAGMA_GCC_POP;
|
||||||
_Pragma("GCC diagnostic pop");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NO_PSK
|
#ifndef NO_PSK
|
||||||
|
@ -1053,6 +1053,14 @@ decouple library dependencies with standard string, memory and so on.
|
|||||||
#define WC_MP_TO_RADIX
|
#define WC_MP_TO_RADIX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && __GNUC__ > 5
|
||||||
|
#define PRAGMA_GCC_IGNORE(str) _Pragma(str);
|
||||||
|
#define PRAGMA_GCC_POP _Pragma("GCC diagnostic pop");
|
||||||
|
#else
|
||||||
|
#define PRAGMA_GCC_IGNORE(str)
|
||||||
|
#define PRAGMA_GCC_POP
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user