]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pacify coverity (CID #1680641 and #1680640)
authorNick Porter <nick@portercomputing.co.uk>
Mon, 26 Jan 2026 11:30:18 +0000 (11:30 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 26 Jan 2026 11:32:38 +0000 (11:32 +0000)
src/lib/util/test/minmax_heap_tests.c

index 2c21796f57ed2c7c80d0a4a1e8f44dcf999af365..88face3d7da886810d8ba9bf90c235ced7b8a15a 100644 (file)
@@ -396,7 +396,7 @@ static void queue_cmp(unsigned int count)
                TEST_CHECK(minmax != NULL);
 
                start_insert = fr_time();
-               for (i = 0; i < count; i++) fr_minmax_heap_insert(minmax, &values[i]);
+               for (i = 0; i < count; i++) (void) fr_minmax_heap_insert(minmax, &values[i]);
                end_insert = fr_time();
 
                start_pop = fr_time();
@@ -609,7 +609,7 @@ static void minmax_heap_iter(void)
 
        populate_values(values, NUM_ELEMENTS(values));
 
-       for (unsigned int i = 0; i < NUM_ELEMENTS(values); i++) fr_minmax_heap_insert(hp, &values[i]);
+       for (unsigned int i = 0; i < NUM_ELEMENTS(values); i++) (void) fr_minmax_heap_insert(hp, &values[i]);
 
        data = fr_minmax_heap_iter_init(hp, &iter);