Reducing the number of compiler warnings