core: Fix unused variable warnings on release builds
authorChris Dickens <christopher.a.dickens@gmail.com>
Tue, 29 Sep 2020 00:10:04 +0000 (17:10 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Tue, 29 Sep 2020 00:10:04 +0000 (17:10 -0700)
commiteee6998395184d87bd8e9c07ce2637caed1207f4
tree32f68947c637f6a443faed675dd9f67d0c78eb4e
parent70c0a51ba3a1daaf8fd51f1457dba86dd389debe
core: Fix unused variable warnings on release builds

The recently introduced PTHREAD_CHECK and WINAPI_CHECK macros cause a
large number of compiler warnings for unused variables on release
builds. Fix this by implementing those macros in terms of some new
macros that are defined based on the definition of NDEBUG.

Closes #788

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/libusbi.h
libusb/os/threads_posix.h
libusb/os/threads_windows.h
libusb/version_nano.h