cleared most compiler warnings