changeset 21851:f1584720a376

test: fts-squat: Ignore gettimeofday return value in test Makes static analyzers happier
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Fri, 17 Mar 2017 10:26:50 +0200
parents d4dc030ab76e
children 4764b26594af
files src/plugins/fts-squat/squat-test.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/fts-squat/squat-test.c	Fri Mar 17 10:26:06 2017 +0200
+++ b/src/plugins/fts-squat/squat-test.c	Fri Mar 17 10:26:50 2017 +0200
@@ -138,7 +138,7 @@
 	}
 
 	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, "