From: Nicholas Nethercote Date: Mon, 18 May 2009 05:10:00 +0000 (+0000) Subject: Merge part of r9250 (add unused attribute to callgrind/fn.c:check_code() X-Git-Tag: svn/VALGRIND_3_5_0~698 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=274ff89dbfc066ec7a0bb86c0f2cceee56c972ed;p=thirdparty%2Fvalgrind.git 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 --- diff --git a/callgrind/fn.c b/callgrind/fn.c index 201075bdc3..4b3a39e0dd 100644 --- a/callgrind/fn.c +++ b/callgrind/fn.c @@ -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) {