Cleared "register is deprecated" warning on OS X with ancient versions of the C++ runtime library

pull/35/head
Jeffrey Walton 2015-08-03 04:33:57 -04:00
parent 491e8dbd74
commit c8860d6fa9
1 changed files with 4 additions and 2 deletions

View File

@ -279,8 +279,10 @@ void RawDES::RawSetKey(CipherDir dir, const byte *key)
byte *const pcr=pc1m+56; /* place to rotate pc1 into */ byte *const pcr=pc1m+56; /* place to rotate pc1 into */
byte *const ks=pcr+56; byte *const ks=pcr+56;
// C++11 deprecated register // C++11 deprecated register. Don't pivot on CRYPTOPP_CXX11 because
#if !defined(CRYPTOPP_CXX11) // configure.h unsets the macro on some Apple platforms if it
// detects an ancient version.
#if (__cplusplus < 201103L)
register int i,j,l; register int i,j,l;
#else #else
int i,j,l; int i,j,l;