sign_state.c:74:23: error: incompatible pointer to integer conversion… #195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… passing void to parameter of type CK_SESSION_HANDLE (aka unsigned long) [-Wint-conversion]
clang version 17.0.6
Target: x86_64-pc-linux-gnu
/bin/sh ../../libtool --tag=CC --mode=link clang -I../../doc/sdk/include/v240 -I../../plugins_tools/util -O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -lpcsclite -Wl,-O1 -Wl,--as-needed -Wl,--defsym=gentoo_check_ldflags=0 -Wl,--defsym=gentoo_check_ldflags=0 -fuse-ld=lld -o sessioninfo sessioninfo.o libtestlib.la ../../cardcomm/pkcs11/src/libbeidpkcs11.la
sign_state.c:74:23: error: incompatible pointer to integer conversion passing 'void ' to parameter of type 'CK_SESSION_HANDLE' (aka 'unsigned long') [-Wint-conversion]
74 | check_rv_long(C_Sign(NULL, data, sizeof(data), NULL, &sig_len), m_p11_noinit);
| ^~~~
/usr/lib/llvm/17/bin/../../../../lib/clang/17/include/stddef.h:89:16: note: expanded from macro 'NULL'
89 | # define NULL ((void)0)
| ^~~~~~~~~~
./testlib.h:112:94: note: expanded from macro 'check_rv_long'
112 | #define check_rv_long(call, mods) { int c = sizeof(mods) / sizeof(ckrv_mod); check_rv_action(call, c, mods); }
| ^~~~
./testlib.h:95:13: note: expanded from macro 'check_rv_action'
95 | CK_RV rv = call;
| ^~~~
../../doc/sdk/include/v240/pkcs11f.h:533:21: note: passing argument to parameter 'hSession' here
533 | (CK_SESSION_HANDLE hSession, /* the session's handle */
| ^