Remove warnings from unit.c