From c8860d6fa984af1c306b9605b8bff6e032d9701c Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 3 Aug 2015 04:33:57 -0400 Subject: [PATCH] Cleared "register is deprecated" warning on OS X with ancient versions of the C++ runtime library --- des.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/des.cpp b/des.cpp index d85ba6fc..9ba91d2f 100644 --- a/des.cpp +++ b/des.cpp @@ -279,8 +279,10 @@ void RawDES::RawSetKey(CipherDir dir, const byte *key) byte *const pcr=pc1m+56; /* place to rotate pc1 into */ byte *const ks=pcr+56; - // C++11 deprecated register -#if !defined(CRYPTOPP_CXX11) + // C++11 deprecated register. Don't pivot on CRYPTOPP_CXX11 because + // configure.h unsets the macro on some Apple platforms if it + // detects an ancient version. +#if (__cplusplus < 201103L) register int i,j,l; #else int i,j,l;