From: Ivo Raisr Date: Wed, 2 Nov 2016 22:07:11 +0000 (+0000) Subject: Fix compiler warning about unused function on Solaris X-Git-Tag: svn/VALGRIND_3_13_0~308 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f128b048cbcb650be4dbe5b6fff2af1b3cf39c1;p=thirdparty%2Fvalgrind.git Fix compiler warning about unused function on Solaris git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16113 --- 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;