]> 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)
committerGitLab <gitlab@git.dovecot.net>
Thu, 30 Mar 2017 17:26:17 +0000 (20:26 +0300)
Makes static analyzers happier

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

index ca3d0a4d05fc9c2b425f061469590d6ba5a71818..8d9545754ef694e8663529037c776f182b89ade6 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, "