2 Warnings C4047 and C4024 in MSVC #770
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#770
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Windows, MSVC:
2 Warnings 284:
warning C4047:
warning C4024:
Solution:
replace
swprintfwithswprintf_s.Can you attach full compiler output? So it includes specific lines and command-line arguments, since our current CI does treat warnings as errors, and this one isn't caught by CI.
Are you using CMake of HIDAPI? What are the cmake arguments?
Sorry, in my haste I forgot to finish the post:
The file to be "fixed" is "hid.c"
I have a simple command-line program compiled with Visual Studio Version 17.14.25 + the minimal WxWidgets command-line program:
(the messages are in italian!)