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
Dear colleague, When I try to compile the example, I get these various messages from libraries in C language. I don't know how to fix these errors. Would you help me? Thank you very much.
Dear
colleague, When I try to compile the example, I get these various messages from libraries in C language. I don't know how to fix these errors. Would you help me? Thank you very much.go version go1.19.2 windows/amd64
github.com/stamp/hid
In file included from ........\pkg\mod\github.com\stamp\[email protected]\hid_enabled.go:40:
........\pkg\mod\github.com\stamp\[email protected]/hidapi/windows/hid.c: In function 'hid_enumerate':
........\pkg\mod\github.com\stamp\[email protected]/hidapi/windows/hid.c:431:5: warning: 'strncpy' specified bound
depends on the length of the source argument [-Wstringop-overflow=]
431 | strncpy(cur_dev->path, str, len+1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
........\pkg\mod\github.com\stamp\[email protected]/hidapi/windows/hid.c:429:11: note: length computed here
429 | len = strlen(str);
|
The text was updated successfully, but these errors were encountered: