|
From: <sv...@va...> - 2009-02-24 04:43:01
|
Author: njn
Date: 2009-02-24 04:42:57 +0000 (Tue, 24 Feb 2009)
New Revision: 9250
Log:
Fix a compile error on x86/Linux.
Modified:
branches/DARWIN/callgrind/fn.c
Modified: branches/DARWIN/callgrind/fn.c
===================================================================
--- branches/DARWIN/callgrind/fn.c 2009-02-24 03:17:17 UTC (rev 9249)
+++ branches/DARWIN/callgrind/fn.c 2009-02-24 04:42:57 UTC (rev 9250)
@@ -44,10 +44,10 @@
struct chunk_t chunk[];
};
-#if defined(HAVE_ELF)
/* 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)
{
@@ -103,7 +103,6 @@
CLG_DEBUG(1, " found nothing.\n");
return False;
}
-#endif // HAVE_ELF
/* _ld_runtime_resolve, located in ld.so, needs special handling:
|