This is an archive of the discontinued LLVM Phabricator instance.

Allow but ignore `-Wreturn-std-move-in-c++11`
AbandonedPublic

Authored by amccarth on Feb 18 2021, 9:39 AM.

Details

Summary

This warning is no longer needed, but at least a few open source projects still build with this option (and -Werror). Accepting but ignoring the option keeps these projects building.

Diff Detail

Event Timeline

amccarth requested review of this revision.Feb 18 2021, 9:39 AM
amccarth created this revision.

Since the fix for this seems to be "just remove the flag", and since the flag can be removed while on the old clang version without problems, it's possible to migrate to the new way without having to do this at the same time as a compiler update already. So I'm not sure we need this.

The situation we're trying to avoid is where old clang has one way of doing things, new clang a new way, and you need to switch ways at the same time as updating compilers. It's better to add the new way while keeping old way working for a while so that you can update clang and then switch to the new way, and then we can remove support for the old way. But in this case it looks like current clang supports old and new way already (?) so I'm not sure we need this.

If others think this is useful, there's little harm in accepting this for a while either though.

Quuxplusone accepted this revision.Feb 18 2021, 11:01 AM
Quuxplusone added a subscriber: Quuxplusone.

FWIW, no particular comment from me. I agree with everything @thakis said.

This revision is now accepted and ready to land.Feb 18 2021, 11:01 AM
amccarth abandoned this revision.Feb 18 2021, 3:14 PM

Fair enough. I'm continuing the whack-a-mole game for the Chromium third-parties.