This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Patch: fix warning
- From: Torsten Rupp <torsten dot rupp at aicas dot com>
- To: libffi-discuss at sourceware dot org
- Date: Tue, 18 Jan 2011 10:43:32 +0900
- Subject: Patch: fix warning
Dear developers,
the file debug.c may produce a warning of missing prototypes when not
compiled with FFI_DEBUG defined. The attached patch wrap the
functions in debug.c with a #ifdef FFI_DEBUG to fix this warning.
Torsten
--
aicas GmbH
ã300-1525 * èåçåæåæãä4-27-3 * Japan
http://www.aicas.com * éèçå/FAXï+81-297-82-3908
USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
GeschÃftsfÃhrer: Dr. James J. Hunt
--- libffi-3.0.9/src/debug.c 2009-12-30 00:22:26.000000000 +0900
+++ libffi-3.0.9-new/src/debug.c 2011-01-18 10:40:50.009145497 +0900
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <stdio.h>
+#ifdef FFI_DEBUG
/* General debugging routines */
void ffi_stop_here(void)
@@ -57,3 +58,4 @@
FFI_ASSERT_AT(a->type != FFI_TYPE_STRUCT || a->elements != NULL, file, line);
}
+#endif