mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
fix(MD*Engine) g++ array-bounds warning
This commit is contained in:
parent
22379ff9c1
commit
5fd6a45ea7
@ -134,8 +134,10 @@ const DigestEngine::Digest& MD4Engine::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(), digest, digest + sizeof(digest));
|
||||
poco_assert_dbg (_digest.size() == sizeof(digest));
|
||||
#if defined(POCO_COMPILER_GCC)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
@ -134,8 +134,10 @@ const DigestEngine::Digest& MD5Engine::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(), digest, digest + sizeof(digest));
|
||||
poco_assert_dbg (_digest.size() == sizeof(digest));
|
||||
#if defined(POCO_COMPILER_GCC)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user