optimize compiler warnings