Eliminating compiler warnings