entity: fix compiler warnings