Compilation warning
../../zsrtp/zrtp/zrtp/ZrtpPacketCommit.cpp: In member function ‘void ZrtpPacketCommit::setNonce(uint8_t*)’:
../../zsrtp/zrtp/zrtp/ZrtpPacketCommit.cpp:36:43: warning: argument to ‘sizeof’ in ‘void* memcpy(void*, const void*, size_t)’ call is the same pointer type ‘uint8_t* {aka unsigned char*}’ as the source; expected ‘uint8_t {aka unsigned char}’ or an explicit length [-Wsizeof-pointer-memaccess]
memcpy(commitHeader->hvi, text, sizeof(commitHeader->hvi-4*ZRTP_WORD_SIZE));
Thanks Saúl, fixed in the develop branch and will go into next release (soon).
Werner
Am 26.02.2014 15:31, schrieb Saúl Ibarra Corretgé:
|../../zsrtp/zrtp/zrtp/ZrtpPacketCommit.cpp: In member function ‘void ZrtpPacketCommit::setNonce(uint8_t_)’: ../../zsrtp/zrtp/zrtp/ZrtpPacketCommit.cpp:36:43: warning: argument to ‘sizeof’ in ‘void_ memcpy(void_, const void_, size_t)’ call is the same pointer type ‘uint8_t* {aka unsigned char_}’ as the source; expected ‘uint8_t {aka unsigned char}’ or an explicit length [-Wsizeof-pointer-memaccess] memcpy(commitHeader->hvi, text, sizeof(commitHeader->hvi-4_ZRTP_WORD_SIZE));
| |
— Reply to this email directly or view it on GitHub https://github.com/wernerd/ZRTPCPP/issues/12.
Werner Dittmann email: [email protected] cell: +49 173 44 37 659 PGP key: 82EF5E8B
Great, thanks!