From: Stefan Liebler Date: Fri, 19 Jun 2015 11:47:59 +0000 (+0200) Subject: Fix benchtests build failure after 'add benchmark for strcoll' X-Git-Tag: glibc-2.22~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2419de0720823d74d3f139618bb0321f99e82aaf;p=thirdparty%2Fglibc.git Fix benchtests build failure after 'add benchmark for strcoll' This patch fixes implicit declaration of function strdup, strtok, strcoll, strchr and removes unused variable res. ChangeLog: * benchtests/bench-strcoll.c: Include string.h. (main): Remove unused variable res. --- diff --git a/ChangeLog b/ChangeLog index 541eecedb8a..7dedfb419a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-06-19 Stefan Liebler + + * benchtests/bench-strcoll.c: + Include string.h. + (main): Remove unused variable res. + 2015-06-19 Stefan Liebler * timezone/Makefile (%/UTC %/Universal): diff --git a/benchtests/bench-strcoll.c b/benchtests/bench-strcoll.c index c3d9a08e1b1..ded04a66034 100644 --- a/benchtests/bench-strcoll.c +++ b/benchtests/bench-strcoll.c @@ -24,6 +24,7 @@ #include #include "json-lib.h" #include "bench-timing.h" +#include /* Many thanks to http://generator.lorem-ipsum.info/ */ #define INPUT_PREFIX "strcoll-inputs/" @@ -234,9 +235,6 @@ bench_file (json_ctx_t *json_ctx, const char *testname, const char *filename, int main (void) { - timing_t res; - TIMING_INIT (res); - json_ctx_t *json_ctx = malloc (sizeof (json_ctx_t)); assert (json_ctx != NULL); json_init (json_ctx, 2, stdout);