]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge part of r9250 (add unused attribute to callgrind/fn.c:check_code()
authorNicholas Nethercote <njn@valgrind.org>
Mon, 18 May 2009 05:10:00 +0000 (05:10 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 18 May 2009 05:10:00 +0000 (05:10 +0000)
from the DARWIN branch.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9890

callgrind/fn.c

index 201075bdc3d7cfd65c9d065c147667925576a1f1..4b3a39e0dd7a2c62b6bba0564d5fde5be40f948e 100644 (file)
@@ -47,6 +47,7 @@ struct pattern
 /* 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)
 {