markers: fix sparse warnings in markers.c