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 | |
parent | ab8f71c03f8334df7b88a725a730d2020f2e9f80 (diff) | |
download | libusb-ada59db186aa95215158129db8cd42e079daff07.tar.gz |
Windows: Silence VS2013 code analysis warnings
* Also update Windows version report for Windows 10
Diffstat (limited to 'examples')
-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(); |