Filter out unknown warning options in the diagnostics