sha256.c: In function 'sr_SHA256_Final':
sha256.c:613:3: warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
*(sha2_word64*)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] =
context->bitcount;
^
sha256.c: In function 'SHA512_Last':
sha256.c:930:2: warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
*(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH] =
context->bitcount[1];
^
sha256.c:931:2: warning: dereferencing type-punned pointer will break strict-aliasing
rules [-Wstrict-aliasing]
*(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH+8] =
context->bitcount[0];
^
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/626
-- Commit Summary --
* lib/srutils: fix gcc warning GH#612
-- File Changes --
M lib/srutils/sha256.c (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/626.patch
https://github.com/kamailio/kamailio/pull/626.diff
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/626