fix a couple of g++ warnings

This commit is contained in:
Alex Fabijanic 2023-10-16 22:05:33 +02:00
parent 1e0fbb8657
commit 69fd22c4e0
2 changed files with 2 additions and 1 deletions

View File

@ -146,6 +146,7 @@ const DigestEngine::Digest& SHA1Engine::digest()
#if defined(POCO_COMPILER_GCC)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
_digest.insert(_digest.begin(), hash, hash + DIGEST_SIZE);
#if defined(POCO_COMPILER_GCC)

View File

@ -34,7 +34,7 @@ SignalHandler::JumpBufferVec SignalHandler::_jumpBufferVec;
SignalHandler::SignalHandler()
{
JumpBufferVec& jbv = jumpBufferVec();
JumpBuffer buf;
JumpBuffer buf = {};
jbv.push_back(buf);
}