Warn about -optimize flag, see #3233