Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 7720b13

Browse files
committed
Ignore deprecation warning for CC_MD5 on iOS 13+ and macOS 10.15+
Fixes #427
1 parent a7a6cfd commit 7720b13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: GCDWebServer/Core/GCDWebServerFunctions.m

+3
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,10 @@ BOOL GCDWebServerIsTextContentType(NSString* type) {
302302
const char* string = [[[NSString alloc] initWithFormat:format arguments:arguments] UTF8String];
303303
va_end(arguments);
304304
unsigned char md5[CC_MD5_DIGEST_LENGTH];
305+
#pragma clang diagnostic push
306+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
305307
CC_MD5(string, (CC_LONG)strlen(string), md5);
308+
#pragma clang diagnostic pop
306309
char buffer[2 * CC_MD5_DIGEST_LENGTH + 1];
307310
for (int i = 0; i < CC_MD5_DIGEST_LENGTH; ++i) {
308311
unsigned char byte = md5[i];

0 commit comments

Comments
 (0)