tests: Mark callbacks as LIBUSB_CALL

Fixes #1337
This commit is contained in:
Ingvar Stepanyan
2023-11-25 12:20:41 +00:00
committed by Tormod Volden
parent c4285dd49d
commit 6d2abd0990
4 changed files with 7 additions and 7 deletions

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11819
#define LIBUSB_NANO 11820

View File

@@ -110,8 +110,8 @@ static libusb_testlib_result test_init_context_log_level(void) {
LIBUSB_TEST_CLEAN_EXIT(TEST_STATUS_SUCCESS);
}
static void test_log_cb(libusb_context *ctx, enum libusb_log_level level,
const char *str) {
static void LIBUSB_CALL test_log_cb(libusb_context *ctx, enum libusb_log_level level,
const char *str) {
UNUSED(ctx);
UNUSED(level);
UNUSED(str);

View File

@@ -192,7 +192,7 @@ static libusb_testlib_result test_no_discovery(void)
}
#if defined(ENABLE_LOGGING) && !defined(ENABLE_DEBUG_LOGGING)
static void test_log_cb(libusb_context *ctx, enum libusb_log_level level,
static void LIBUSB_CALL test_log_cb(libusb_context *ctx, enum libusb_log_level level,
const char *str) {
UNUSED(ctx);
UNUSED(level);

View File

@@ -876,7 +876,7 @@ transfer_submit_all_retry(TestThreadedSubmit *data)
return NULL;
}
static void
static void LIBUSB_CALL
test_threaded_submit_transfer_cb(struct libusb_transfer *transfer)
{
TestThreadedSubmit *data = transfer->user_data;
@@ -955,7 +955,7 @@ test_threaded_submit(UMockdevTestbedFixture * fixture, UNUSED_DATA)
g_free (c);
}
static int
static int LIBUSB_CALL
hotplug_count_arrival_cb(libusb_context *ctx,
libusb_device *device,
libusb_hotplug_event event,
@@ -972,7 +972,7 @@ hotplug_count_arrival_cb(libusb_context *ctx,
}
#ifdef UMOCKDEV_HOTPLUG
static int
static int LIBUSB_CALL
hotplug_count_removal_cb(libusb_context *ctx,
libusb_device *device,
libusb_hotplug_event event,