]> granicus.if.org Git - gc/commit
Workaround 'comparison of identical expressions' false code defects
authorIvan Maidanski <ivmai@mail.ru>
Tue, 23 May 2017 06:23:54 +0000 (09:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 23 May 2017 06:23:54 +0000 (09:23 +0300)
commit0fc61f22c24537cd450e1157ee75d12929ffd6ff
tree2f1426f94119dc2570018f4bcd1e606f96b8c972
parent36038e102f52380413c91c2c2205441c0661b6aa
Workaround 'comparison of identical expressions' false code defects

* thread_local_alloc.c [THREAD_LOCAL_ALLOC] (GC_init_thread_local):
New local variable (res); save result of GC_setspecific and
GC_key_create to res; replace res!=0 with COVERT_DATAFLOW(res)!=0.
* pthread_support.c [CAN_HANDLE_FORK] (GC_remove_all_threads_but_me):
Likewise.
pthread_support.c
thread_local_alloc.c