Page MenuHomePhabricator

remove register storage class specifier.
ClosedPublic

Authored by emaste on Jul 7 2017, 7:03 AM.

Details

Summary

Found while importing libomp into the FreeBSD base system (https://reviews.freebsd.org/D11507). Use of register produced warnings like:

register.cc:5:2: warning: 'register' storage class specifier is deprecated and
      incompatible with C++1z [-Wdeprecated-register]
        register int i;
        ^~~~~~~~~

The proposed FreeBSD import currently uses a hack (adding -Dregister= to CFLAGS). Here, just remove the deprecated keyword.

Diff Detail

Repository
rL LLVM

Event Timeline

emaste created this revision.Jul 7 2017, 7:03 AM
This revision is now accepted and ready to land.Jul 7 2017, 9:00 AM
This revision was automatically updated to reflect the committed changes.