]> granicus.if.org Git - gc/commitdiff
Adjust OK_DISCLAIM_INITZ definition
authorIvan Maidanski <ivmai@mail.ru>
Thu, 26 Jan 2012 04:44:15 +0000 (08:44 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 26 Jan 2012 08:54:07 +0000 (12:54 +0400)
* include/private/gc_priv.h (OK_DISCLAIM_INITZ): Replace NULL with
0 for function pointer (in case of ENABLE_DISCLAIM).

include/private/gc_priv.h

index 8ab53a51286a75ea950cdf54de7b5aef9227ccee..ada5b3e5a1a9c276f83d7e3e02d16d6ace7c10ff 100644 (file)
@@ -1266,7 +1266,7 @@ GC_EXTERN struct obj_kind {
                         /* is reclaimed, but must also tolerate being   */
                         /* called with object from freelist.  Non-zero  */
                         /* exit prevents object from being reclaimed.   */
-#    define OK_DISCLAIM_INITZ /* comma */, FALSE, NULL
+#    define OK_DISCLAIM_INITZ /* comma */, FALSE, 0
 #  else
 #    define OK_DISCLAIM_INITZ /* empty */
 #  endif /* !ENABLE_DISCLAIM */