summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-06-08 15:16:19 +0200
committerIvan Maidanski <ivmai@mail.ru>2013-06-08 15:16:19 +0200
commitc71e7abc732e157ae8f31a7f32b4a5263b5914a8 (patch)
tree555de1f47f0666e06b979d081172289d8b8b66ad
parent012d17d56c985d0501fffd16eb606470e0c7e0ce (diff)
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).
-rw-r--r--include/gc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/gc.h b/include/gc.h
index 5db4040..a370dea 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 */