]> granicus.if.org Git - gc/commit
Fix 'comparison of non-null parameter is always false' warning (Clang)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 10 Sep 2015 08:48:05 +0000 (11:48 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 29 Jan 2016 13:06:00 +0000 (16:06 +0300)
commit44182a52fda35320d4e2349b5999a0cac9ef55fd
treec83a11221cce376b216cf6ff635c7d79bbab639a
parent697be5db384445543bb487944934028cbbf14fcf
Fix 'comparison of non-null parameter is always false' warning (Clang)

* alloc.c (GC_set_stop_func, GC_try_to_collect): Use
NONNULL_ARG_NOT_NULL to check argument marked as non-null (in
function declaration) is actually non-null.
* finalize.c (GC_general_register_disappearing_link,
GC_register_long_link, GC_move_disappearing_link, GC_move_long_link):
Likewise.
* misc.c (GC_set_warn_proc, GC_set_abort_func, GC_set_oom_fn): Likewise.
* include/private/gc_priv.h (NONNULL_ARG_NOT_NULL): New macro.
alloc.c
finalize.c
include/private/gc_priv.h
misc.c