ZRTPCPP icon indicating copy to clipboard operation
ZRTPCPP copied to clipboard

Compilation warning

Open saghul opened this issue 11 years ago • 2 comments

../../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));

saghul avatar Feb 26 '14 14:02 saghul

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

wernerd avatar Feb 27 '14 13:02 wernerd

Great, thanks!

saghul avatar Feb 27 '14 13:02 saghul