diff options
author | Ludovic Rousseau <ludovic.rousseau@free.fr> | 2023-05-09 22:25:27 +0200 |
---|---|---|
committer | Ludovic Rousseau <ludovic.rousseau@free.fr> | 2023-05-09 22:48:01 +0200 |
commit | a8a70f62c07261e721816445d9c408c770cf45a2 (patch) | |
tree | 1aa5a73f33583f9f51d3b0e605e5abc5a360eb89 /libusb | |
parent | 3bace666b72ca120587e12acc4b3547bb8e3fa32 (diff) | |
download | libusb-a8a70f62c07261e721816445d9c408c770cf45a2.tar.gz |
Fix build errors of tests with --enable-debug-log
The errors were:
../../tests/set_option.c:146:31: error: no member named 'debug' in 'struct libusb_context'
LIBUSB_EXPECT(==, test_ctx->debug, 4);
~~~~~~~~ ^
../../tests/set_option.c:74:40: note: expanded from macro 'LIBUSB_EXPECT'
int64_t _lhs = (int64_t)(intptr_t)(lhs), _rhs = (int64_t)(intptr_t)(rhs); \
^~~
../../tests/set_option.c:152:31: error: no member named 'debug' in 'struct libusb_context'
LIBUSB_EXPECT(==, test_ctx->debug, 4);
~~~~~~~~ ^
../../tests/set_option.c:74:40: note: expanded from macro 'LIBUSB_EXPECT'
int64_t _lhs = (int64_t)(intptr_t)(lhs), _rhs = (int64_t)(intptr_t)(rhs); \
^~~
2 errors generated.
../../tests/init_context.c:112:31: error: no member named 'debug' in 'struct libusb_context'
LIBUSB_EXPECT(==, test_ctx->debug, LIBUSB_LOG_LEVEL_ERROR);
~~~~~~~~ ^
../../tests/init_context.c:74:40: note: expanded from macro 'LIBUSB_EXPECT'
int64_t _lhs = (int64_t)(intptr_t)(lhs), _rhs = (int64_t)(intptr_t)(rhs); \
^~~
../../tests/init_context.c:140:31: error: no member named 'log_handler' in 'struct libusb_context'
LIBUSB_EXPECT(==, test_ctx->log_handler, test_log_cb);
~~~~~~~~ ^
../../tests/init_context.c:74:40: note: expanded from macro 'LIBUSB_EXPECT'
int64_t _lhs = (int64_t)(intptr_t)(lhs), _rhs = (int64_t)(intptr_t)(rhs); \
^~~
2 errors generated.
Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
Diffstat (limited to 'libusb')
-rw-r--r-- | libusb/version_nano.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 6fd8422..fec9410 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11795 +#define LIBUSB_NANO 11796 |