From a0ebd8ba15899074aa1568dff4a787624f5514b6 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 22 Feb 2013 22:27:16 +0100 Subject: [PATCH] Fix warning in tests: Variable might get clobbered by 'longjmp' or 'vfork' --- test/test_access_storm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_access_storm.c b/test/test_access_storm.c index f214e21..c86d855 100644 --- a/test/test_access_storm.c +++ b/test/test_access_storm.c @@ -30,7 +30,7 @@ test_access_storm(void) size_t device_count = nfc_list_devices(context, connstrings, MAX_DEVICE_COUNT); cut_assert_equal_int(ref_device_count, device_count, cut_message("device count")); - for (size_t i = 0; i < device_count; i++) { + for (volatile size_t i = 0; i < device_count; i++) { nfc_device *device; nfc_target ant[MAX_TARGET_COUNT];