Page MenuHomePhabricator

Reduce -Wregister from DefaultError to a default-on warning.
Needs ReviewPublic

Authored by jyknight on Jun 12 2020, 3:44 PM.

Details

Reviewers
rsmith
Summary

There is a lot of C++ code in the wild still using 'register', which
will become broken if we switch the default compilation mode to
C++17. A default-on warning seems to get the message across
sufficiently, without unnecessarily breaking code that hasn't asked
for it (e.g. with -Werror). GCC has also chosen to make -Wregister an
on-by-default warning.

Diff Detail

Event Timeline

jyknight created this revision.Jun 12 2020, 3:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2020, 3:44 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript