diff options
| author | Pete Batard <pete@akeo.ie> | 2014-11-13 22:03:30 +0000 |
|---|---|---|
| committer | Pete Batard <pete@akeo.ie> | 2014-11-13 22:03:30 +0000 |
| commit | ada59db186aa95215158129db8cd42e079daff07 (patch) | |
| tree | df9991bb82148db26d5c8e83b49e816c859bec66 /examples/xusb.c | |
| parent | ab8f71c03f8334df7b88a725a730d2020f2e9f80 (diff) | |
| download | platform_external_libusb-ada59db186aa95215158129db8cd42e079daff07.tar.gz platform_external_libusb-ada59db186aa95215158129db8cd42e079daff07.tar.bz2 platform_external_libusb-ada59db186aa95215158129db8cd42e079daff07.zip | |
Windows: Silence VS2013 code analysis warnings
* Also update Windows version report for Windows 10
Diffstat (limited to 'examples/xusb.c')
| -rw-r--r-- | examples/xusb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index f7549ca..0fdb19d 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -1098,7 +1098,8 @@ int main(int argc, char** argv) // but since we can't call on libusb_set_debug() before libusb_init(), we use the env variable method old_dbg_str = getenv("LIBUSB_DEBUG"); if (debug_mode) { - putenv("LIBUSB_DEBUG=4"); // LIBUSB_LOG_LEVEL_DEBUG + if (putenv("LIBUSB_DEBUG=4") != 0) // LIBUSB_LOG_LEVEL_DEBUG + printf("Unable to set debug level"); } version = libusb_get_version(); |
