You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Compile chainmaker warning in function check_chainmaker_wallet
01Wallet.c: In function 'check_chainmaker_wallet':
01Wallet.c:29:22: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign]
result = strncmp(wallet_ptr->user_cert_prikey_info.prikeyCtx.extra_data.value, chainmaker_sign_key_buf, strlen(chainmaker_sign_key_buf));
^~~~~~~~~~
In file included from /usr/include/check.h:26:0,
from tcase_chainmaker.h:22,
from 01Wallet.c:16:
/usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'BUINT8 * {aka unsigned char *}'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
^~~~~~~
01Wallet.c:35:22: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness [-Wpointer-sign]
result = strncmp(wallet_ptr->user_cert_prikey_info.cert.field_ptr, chainmaker_sign_cert_buf, strlen(chainmaker_sign_cert_buf));
^~~~~~~~~~
In file included from /usr/include/check.h:26:0,
from tcase_chainmaker.h:22,
from 01Wallet.c:16:
/usr/include/string.h:139:12: note: expected 'const char *' but argument is of type 'BUINT8 * {aka unsigned char *}'
extern int strncmp (const char *__s1, const char *__s2, size_t __n)
^~~~~~~
The text was updated successfully, but these errors were encountered:
Describe the bug
Compile chainmaker warning in function check_chainmaker_wallet
The text was updated successfully, but these errors were encountered: