ruby-changes:58223
From: Nobuyoshi <ko1@a...>
Date: Sat, 12 Oct 2019 18:47:45 +0900 (JST)
Subject: [ruby-changes:58223] f405564711 (master): Suppress deprecation warnings of MD5 from Xcode 11.1
https://git.ruby-lang.org/ruby.git/commit/?id=f405564711 From f4055647115f2003ce614dd16cf68d2933f811fe Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 12 Oct 2019 18:47:06 +0900 Subject: Suppress deprecation warnings of MD5 from Xcode 11.1 diff --git a/ext/digest/md5/md5cc.h b/ext/digest/md5/md5cc.h index 35652ea..e34d7d5 100644 --- a/ext/digest/md5/md5cc.h +++ b/ext/digest/md5/md5cc.h @@ -1,6 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ext/digest/md5/md5cc.h#L1 #define COMMON_DIGEST_FOR_OPENSSL 1 #include <CommonCrypto/CommonDigest.h> +#ifdef __clang__ +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +/* Suppress deprecation warnings of MD5 from Xcode 11.1 */ +/* Although we know MD5 is deprecated too, provide just for backward + * compatibility, as well as Apple does. */ +#endif + #define MD5_BLOCK_LENGTH CC_MD5_BLOCK_BYTES static DEFINE_UPDATE_FUNC_FOR_UINT(MD5) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/