]> 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 22:32:04 +0000 (01:32 +0300)
commit75f57d4a7faa4dea1d6a1c59405392a80f04ed20
tree3bca798ba665918fc655ee78fb49ecbde71a9c78
parentfbc0be170f446a315009d04c6945dc2938c85205
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