This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: Patch: fix warning
Dear Jasper,
> I think the #ifdef line should be the very first line in the file,
> even before including any other files.
OK. Please find attached a modified patch.
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-02-11 13:32:50.374940616 +0900
@@ -1,3 +1,4 @@
+#ifdef FFI_DEBUG
/* -----------------------------------------------------------------------
debug.c - Copyright (c) 1996 Red Hat, Inc.
@@ -57,3 +58,4 @@
FFI_ASSERT_AT(a->type != FFI_TYPE_STRUCT || a->elements != NULL, file, line);
}
+#endif /* FFI_DEBUG */