From c9df3df9d2a1d7a87f8026b6279639bca0962b91 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 17 Apr 2003 17:38:38 +0000 Subject: Update. * string/test-memchr.c: Likewise. * string/test-memcmp.c: Likewise. * string/test-memcpy.c: Likewise. * string/test-memmove.c: Likewise. * string/test-memset.c: Likewise. * string/test-strcat.c: Likewise. * string/test-strchr.c: Likewise. * string/test-strcmp.c: Likewise. * string/test-strcpy.c: Likewise. * string/test-strlen.c: Likewise. * string/test-strncmp.c: Likewise. * string/test-strpbrk.c: Likewise. * string/test-strrchr.c: Likewise. * string/test-strspn.c: Likewise. --- string/test-strlen.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'string/test-strlen.c') diff --git a/string/test-strlen.c b/string/test-strlen.c index 22b7c1a..82ad95e 100644 --- a/string/test-strlen.c +++ b/string/test-strlen.c @@ -1,5 +1,5 @@ /* Test and measure strlen functions. - Copyright (C) 1999, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Jakub Jelinek , 1999. @@ -58,7 +58,9 @@ do_one_test (impl_t *impl, const char *s, size_t exp_len) if (HP_TIMING_AVAIL) { - hp_timing_t start, stop, best_time = ~ (hp_timing_t) 0; + hp_timing_t start __attribute ((unused)); + hp_timing_t stop __attribute ((unused)); + hp_timing_t best_time = ~ (hp_timing_t) 0; size_t i; for (i = 0; i < 32; ++i) @@ -81,7 +83,7 @@ do_test (size_t align, size_t len, int max_char) align &= 7; if (align + len >= page_size) return; - + for (i = 0; i < len; ++i) buf1[align + i] = 1 + 7 * i % max_char; buf1[align + len] = 0; -- cgit v1.1