Skip to content

Commit d7d5535

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Suppres CC_MD5 warning (#47378)
Summary: Pull Request resolved: #47378 The RCTMD5Hash in RCTUtils is using CC_MD5 function which is deprecated. unfortunately we can't really change it or we will break many apps that use it in the AsyncStorage. Those app wlll have to do a migration to use a different function. Meanwhile we are suppressing the warning ## Changelog [Internal] - Suppress CC_MD5 warning Reviewed By: cortinico Differential Revision: D65424309 fbshipit-source-id: e0258ae68482f6c4a3a865bb52920f87bc5ada21
1 parent 0e7ba90 commit d7d5535

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-native/React/Base/RCTUtils.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,10 @@ id RCTJSONClean(id object)
239239
{
240240
const char *str = string.UTF8String;
241241
unsigned char result[CC_MD5_DIGEST_LENGTH];
242+
#pragma clang diagnostic push
243+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
242244
CC_MD5(str, (CC_LONG)strlen(str), result);
245+
#pragma clang diagnostic pop
243246

244247
return [NSString stringWithFormat:@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
245248
result[0],

0 commit comments

Comments
 (0)