Make sure the function pointer has a complete prototype, for compilation
in C++ mode.
This commit is contained in:
parent
d6ed1f2713
commit
effd4a0d24
12
devel/boehm-gc/patches/patch-finalize_c
Normal file
12
devel/boehm-gc/patches/patch-finalize_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-finalize_c,v 1.1 2003/11/11 23:49:08 espie Exp $
|
||||
--- finalize.c.orig 2003-11-11 19:15:17.000000000 +0100
|
||||
+++ finalize.c 2003-11-11 19:15:29.000000000 +0100
|
||||
@@ -803,7 +803,7 @@ int GC_invoke_finalizers()
|
||||
return count;
|
||||
}
|
||||
|
||||
-void (* GC_finalizer_notifier)() = (void (*) GC_PROTO((void)))0;
|
||||
+void (* GC_finalizer_notifier) GC_PROTO((void)) = (void (*) GC_PROTO((void)))0;
|
||||
|
||||
static GC_word last_finalizer_notification = 0;
|
||||
|
12
devel/boehm-gc/patches/patch-include_gc_h
Normal file
12
devel/boehm-gc/patches/patch-include_gc_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-include_gc_h,v 1.1 2003/11/11 23:49:08 espie Exp $
|
||||
--- include/gc.h.orig 2003-11-11 19:12:31.000000000 +0100
|
||||
+++ include/gc.h 2003-11-11 19:15:50.000000000 +0100
|
||||
@@ -122,7 +122,7 @@ GC_API int GC_java_finalization;
|
||||
/* ordered finalization. Default value is */
|
||||
/* determined by JAVA_FINALIZATION macro. */
|
||||
|
||||
-GC_API void (* GC_finalizer_notifier)();
|
||||
+GC_API void (* GC_finalizer_notifier) GC_PROTO((void));
|
||||
/* Invoked by the collector when there are */
|
||||
/* objects to be finalized. Invoked at most */
|
||||
/* once per GC cycle. Never invoked unless */
|
Loading…
x
Reference in New Issue
Block a user