diff options
author | Jose <pepone@users.noreply.github.com> | 2021-12-01 13:46:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 13:46:21 +0100 |
commit | 7204b31a082a10cd481c1f31dbb6184ec699160d (patch) | |
tree | b85b68e4ea8585b60fb26994af4ffa5708a31882 /cpp/src | |
parent | Update JS depedencies (diff) | |
download | ice-7204b31a082a10cd481c1f31dbb6184ec699160d.tar.bz2 ice-7204b31a082a10cd481c1f31dbb6184ec699160d.tar.xz ice-7204b31a082a10cd481c1f31dbb6184ec699160d.zip |
OpenSSL 3.0 build (#1320)
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/SHA1.cpp | 2 | ||||
-rw-r--r-- | cpp/src/Ice/Thread.cpp | 4 | ||||
-rw-r--r-- | cpp/src/IceSSL/OpenSSLEngine.cpp | 3 | ||||
-rw-r--r-- | cpp/src/IceSSL/OpenSSLUtil.cpp | 2 |
4 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/Ice/SHA1.cpp b/cpp/src/Ice/SHA1.cpp index a1d79afa250..4a50425f89e 100644 --- a/cpp/src/Ice/SHA1.cpp +++ b/cpp/src/Ice/SHA1.cpp @@ -12,6 +12,8 @@ # include <CommonCrypto/CommonDigest.h> # else # include <openssl/sha.h> +# // Ignore OpenSSL 3.0 deprecation warning +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" # endif #endif diff --git a/cpp/src/Ice/Thread.cpp b/cpp/src/Ice/Thread.cpp index da379edb972..90ebee26e59 100644 --- a/cpp/src/Ice/Thread.cpp +++ b/cpp/src/Ice/Thread.cpp @@ -714,9 +714,9 @@ IceUtil::Thread::start(size_t stackSize, bool realtimeScheduling, int priority) } if(stackSize > 0) { - if(stackSize < PTHREAD_STACK_MIN) + if(stackSize < (size_t)PTHREAD_STACK_MIN) { - stackSize = PTHREAD_STACK_MIN; + stackSize = (size_t)PTHREAD_STACK_MIN; } #ifdef __APPLE__ if(stackSize % 4096 > 0) diff --git a/cpp/src/IceSSL/OpenSSLEngine.cpp b/cpp/src/IceSSL/OpenSSLEngine.cpp index b618d71d3cd..885a5b5c24b 100644 --- a/cpp/src/IceSSL/OpenSSLEngine.cpp +++ b/cpp/src/IceSSL/OpenSSLEngine.cpp @@ -28,6 +28,9 @@ #ifdef _MSC_VER # pragma warning(disable:4127) // conditional expression is constant +#elif defined(__GNUC__) +# // Ignore OpenSSL 3.0 deprecation warning +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif using namespace std; diff --git a/cpp/src/IceSSL/OpenSSLUtil.cpp b/cpp/src/IceSSL/OpenSSLUtil.cpp index 52f99bb4a5b..fe35e41f4ac 100644 --- a/cpp/src/IceSSL/OpenSSLUtil.cpp +++ b/cpp/src/IceSSL/OpenSSLUtil.cpp @@ -10,6 +10,8 @@ // #if defined(__GNUC__) # pragma GCC diagnostic ignored "-Wold-style-cast" +# // Ignore OpenSSL 3.0 deprecation warning +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif using namespace std; |