From 5f128b048cbcb650be4dbe5b6fff2af1b3cf39c1 Mon Sep 17 00:00:00 2001 From: Ivo Raisr Date: Wed, 2 Nov 2016 22:07:11 +0000 Subject: [PATCH] Fix compiler warning about unused function on Solaris git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16113 --- tests/libc_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libc_test.c b/tests/libc_test.c index 0de3d5de8d..7a6c70c1d5 100644 --- a/tests/libc_test.c +++ b/tests/libc_test.c @@ -19,7 +19,7 @@ typedef int Bool; /* Assumes the versions are x.y.z, with y and z optional. */ -static Bool matches_version(char *min_version) { +static __attribute__((unused)) Bool matches_version(char *min_version) { int a1=0, a2=0, a3=0, g1=0, g2=0, g3=0; // 'a' = actual; 'g' = given const char *aversion; -- 2.47.2