Add --no-warnings option (Fixes #2630)