[kaffe] CVS kaffe (robilad): small warning fixlet
Kaffe CVS
cvs-commits at kaffe.org
Sat Apr 22 08:33:14 PDT 2006
PatchSet 7260
Date: 2006/04/22 15:22:33
Author: robilad
Branch: HEAD
Tag: (none)
Log:
small warning fixlet
2006-04-22 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/binreloc.c (_br_find_exe_for_symbol):
Mark parameter error as unused when binreloc is enabled.
Members:
ChangeLog:1.4765->1.4766
kaffe/kaffevm/binreloc.c:1.2->1.3
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4765 kaffe/ChangeLog:1.4766
--- kaffe/ChangeLog:1.4765 Sat Apr 22 14:50:23 2006
+++ kaffe/ChangeLog Sat Apr 22 15:22:33 2006
@@ -1,5 +1,10 @@
2006-04-22 Dalibor Topic <robilad at kaffe.org>
+ * kaffe/kaffevm/binreloc.c (_br_find_exe_for_symbol):
+ Mark parameter error as unused when binreloc is enabled.
+
+2006-04-22 Dalibor Topic <robilad at kaffe.org>
+
* THIRDPARTY: Added version information for binreloc.
2006-04-22 Dalibor Topic <robilad at kaffe.org>
Index: kaffe/kaffe/kaffevm/binreloc.c
diff -u kaffe/kaffe/kaffevm/binreloc.c:1.2 kaffe/kaffe/kaffevm/binreloc.c:1.3
--- kaffe/kaffe/kaffevm/binreloc.c:1.2 Sun Dec 18 17:35:43 2005
+++ kaffe/kaffe/kaffevm/binreloc.c Sat Apr 22 15:22:36 2006
@@ -173,13 +173,18 @@
#endif /* ENABLE_BINRELOC */
}
+#if defined(ENABLE_BINRELOC)
+#define BINRELOC_UNUSED UNUSED
+#else /* !defined(ENABLE_BINRELOC) */
+#define BINRELOC_UNUSED /* */
+#endif /* defined(ENABLE_BINRELOC) */
/** @internal
* Find the canonical filename of the executable which owns symbol.
* Returns a filename which must be freed, or NULL on error.
*/
static char *
-_br_find_exe_for_symbol (const void *symbol, BrInitError *error)
+_br_find_exe_for_symbol (const void *symbol, BrInitError *error BINRELOC_UNUSED)
{
#ifndef ENABLE_BINRELOC
if (error)
More information about the kaffe
mailing list