Merge part of r9250 (add unused attribute to callgrind/fn.c:check_code()
from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9890 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/callgrind/fn.c b/callgrind/fn.c
index 201075b..4b3a39e 100644
--- a/callgrind/fn.c
+++ b/callgrind/fn.c
@@ -47,6 +47,7 @@
/* Scan for a pattern in the code of an ELF object.
* If found, return true and set runtime_resolve_{addr,length}
*/
+__attribute__((unused)) // Possibly; depends on the platform.
static Bool check_code(obj_node* obj,
unsigned char code[], struct pattern* pat)
{