]> granicus.if.org Git - gc/commit
Fix 'statement unreachable' compiler warning in GC_mark_from
authorIvan Maidanski <ivmai@mail.ru>
Wed, 17 Feb 2016 07:54:31 +0000 (10:54 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 17 Feb 2016 07:54:31 +0000 (10:54 +0300)
commit23027db35101a00780ea9f264ad6f354c33b56f6
treedc7acd87b7dd268bfd2ff511c7dcb45f47931f68
parent25646764e33fd302bcced45fb8aedd665f3bbff3
Fix 'statement unreachable' compiler warning in GC_mark_from

* mark.c (GC_mark_from): Initialize 'limit' local variable
unconditionally; add static assertion on GC_DS_TAGS (to check that it
corresponds to number of switch cases); remove switch default (as it
cannot happen).
mark.c