public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* Patch: fix warning
@ 2011-01-18  1:47 Torsten Rupp
  2011-02-10 13:46 ` Jasper Lievisse Adriaanse
  2011-02-11 17:28 ` Anthony Green
  0 siblings, 2 replies; 5+ messages in thread
From: Torsten Rupp @ 2011-01-18  1:47 UTC (permalink / raw)
  To: libffi-discuss

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

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

[-- Attachment #2: libffi_debug_fix_warnings.patch --]
[-- Type: text/x-diff, Size: 387 bytes --]

--- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-14  2:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18  1:47 Patch: fix warning Torsten Rupp
2011-02-10 13:46 ` Jasper Lievisse Adriaanse
2011-02-11  6:13   ` Torsten Rupp
2011-02-11 17:28 ` Anthony Green
2011-02-14  2:24   ` Torsten Rupp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).