about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorJoe Simmons-Talbott <josimmon@redhat.com>2023-04-21 09:24:22 -0400
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-04-21 10:28:01 -0300
commit1626d8a521c7c771d4118b1328421fea113cab64 (patch)
tree951fa64b0e489e177d4a3addb65c7d1854a87a99 /string
parent8e78a2e1d166411a1243e505d036e85e4a7ff17f (diff)
downloadglibc-1626d8a521c7c771d4118b1328421fea113cab64.tar.gz
glibc-1626d8a521c7c771d4118b1328421fea113cab64.tar.xz
glibc-1626d8a521c7c771d4118b1328421fea113cab64.zip
string: Allow use of test-string.h for non-ifunc implementations.
Mark two variables as unused to silence warning when using
test-string.h for non-ifunc implementations.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'string')
-rw-r--r--string/test-string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/string/test-string.h b/string/test-string.h
index 41de973479..8bcb8afd0a 100644
--- a/string/test-string.h
+++ b/string/test-string.h
@@ -130,8 +130,8 @@ cmdline_process_function (int c)
 /* Increase size of FUNC_LIST if assert is triggered at run-time.  */
 static struct libc_ifunc_impl func_list[32];
 static int func_count;
-static int impl_count = -1;
-static impl_t *impl_array;
+static int impl_count __attribute__ ((unused)) = -1;
+static impl_t *impl_array __attribute__ ((unused));
 
 # define FOR_EACH_IMPL(impl, notall) \
   impl_t *impl;								\