=* #2966 Reduce warnings from compile, test, scaladoc