]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
test: fts-squat: Ignore gettimeofday return value in test
authorAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 17 Mar 2017 08:26:50 +0000 (10:26 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 30 Mar 2017 17:58:23 +0000 (20:58 +0300)
Makes static analyzers happier

src/plugins/fts-squat/squat-test.c

index 634c70f4eb7856f2b5ecaf7d3d3b0e505ef85f7f..e56b0674a2a86c105721317463bd34c142e37b14 100644 (file)
@@ -138,7 +138,7 @@ int main(int argc ATTR_UNUSED, char *argv[])
        }
 
        clock_end = clock();
-       gettimeofday(&tv_end, NULL);
+       (void)gettimeofday(&tv_end, NULL);
 
        cputime = (double)(clock_end - clock_start) / CLOCKS_PER_SEC;
        fprintf(stderr, "\n - Index time: %.2f CPU seconds, "