aboutsummaryrefslogtreecommitdiff
path: root/string/test-memchr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-04-17 17:38:38 +0000
committerUlrich Drepper <drepper@redhat.com>2003-04-17 17:38:38 +0000
commitc9df3df9d2a1d7a87f8026b6279639bca0962b91 (patch)
treeaa11dfb022d7115fcb1d744a2c2cd968de7da359 /string/test-memchr.c
parent9e9f1f159bb957faa125f50efb953088aec831ef (diff)
downloadglibc-c9df3df9d2a1d7a87f8026b6279639bca0962b91.zip
glibc-c9df3df9d2a1d7a87f8026b6279639bca0962b91.tar.gz
glibc-c9df3df9d2a1d7a87f8026b6279639bca0962b91.tar.bz2
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.
Diffstat (limited to 'string/test-memchr.c')
-rw-r--r--string/test-memchr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/string/test-memchr.c b/string/test-memchr.c
index e5c13a2..df866fe 100644
--- a/string/test-memchr.c
+++ b/string/test-memchr.c
@@ -1,5 +1,5 @@
/* Test and measure memchr 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 <jakub@redhat.com>, 1999.
@@ -50,7 +50,9 @@ do_one_test (impl_t *impl, const char *s, int c, size_t n, char *exp_res)
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)
@@ -74,7 +76,7 @@ do_test (size_t align, size_t pos, size_t len, int seek_char)
align &= 7;
if (align + len >= page_size)
return;
-
+
for (i = 0; i < len; ++i)
{
buf1[align + i] = 1 + 23 * i % 127;