Fix -Yno-adapted-args, it would just warn, not err
Merge pull request #3872 from lrytz/no-adapted-args

Fix -Yno-adapted-args, it would just warn, not err