Menu

#157 -std=c++11 exposes many 'register' storage class specifier is deprecated warnings

v1.6.2.0
closed-fixed
nobody
None
5
2015-03-13
2015-03-13
No

Passing the -std=c++1 to gcc (Apple clang) to eliminate the warnings...

layer1/PConv.h:246:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
for (auto it = v.begin(); it != v.end(); ++it) {
^
exposes that many instances of the new warning...

layer0/Parse.h:42:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
register char ch;
^~~~~~~~~

Shouldn't all of these usages of register be removed now that the files are .cpp?

http://stackoverflow.com/questions/10675072/is-the-register-keyword-still-used

Discussion

  • Jack Howarth

    Jack Howarth - 2015-03-13

    The attached patch removes the usage of the register storage class for the .h and .cpp files in current pymol svn. Note that the register storage class is ignored by c++ compilers so this is effectively dead code.

     
  • Thomas Holder

    Thomas Holder - 2015-03-13
    • status: open --> closed-fixed
     
  • Thomas Holder

    Thomas Holder - 2015-03-13

    removed all "register" specifiers in svn rev 4110

     

Log in to post a comment.

MongoDB Logo MongoDB