fixed gcc warnings