]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix compiler warning about unused function on Solaris
authorIvo Raisr <ivosh@ivosh.net>
Wed, 2 Nov 2016 22:07:11 +0000 (22:07 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Wed, 2 Nov 2016 22:07:11 +0000 (22:07 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16113

tests/libc_test.c

index 0de3d5de8d17cb5167732db5b9a3c2993000412e..7a6c70c1d52b1ca12b24d97d1e2bb7e3a1879b34 100644 (file)
@@ -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;