From: Ivan Maidanski Date: Sat, 8 Jun 2013 13:16:19 +0000 (+0400) Subject: Suppress 'GC_dont_gc deprecated' warning in gc.h if GC_DONT_GC X-Git-Tag: gc7_4_0~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c71e7abc732e157ae8f31a7f32b4a5263b5914a8;p=gc Suppress 'GC_dont_gc deprecated' warning in gc.h if GC_DONT_GC * include/gc.h (GC_dont_gc): Do not specify GC_ATTR_DEPRECATED if GC_DONT_GC defined (to avoid deprecated warning in GC_INIT_CONF_MAX_RETRIES which assigns GC_dont_gc directly). --- diff --git a/include/gc.h b/include/gc.h index 5db4040b..a370deae 100644 --- a/include/gc.h +++ b/include/gc.h @@ -192,8 +192,11 @@ GC_API GC_ATTR_DEPRECATED GC_finalizer_notifier_proc GC_finalizer_notifier; GC_API void GC_CALL GC_set_finalizer_notifier(GC_finalizer_notifier_proc); GC_API GC_finalizer_notifier_proc GC_CALL GC_get_finalizer_notifier(void); -GC_API GC_ATTR_DEPRECATED int GC_dont_gc; - /* != 0 ==> Don't collect. In versions 6.2a1+, */ +GC_API +# ifndef GC_DONT_GC + GC_ATTR_DEPRECATED +# endif + int GC_dont_gc; /* != 0 ==> Don't collect. In versions 6.2a1+, */ /* this overrides explicit GC_gcollect() calls. */ /* Used as a counter, so that nested enabling */ /* and disabling work correctly. Should */