mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
JANITORIAL: CREATE_PROJECT: disable MD5 deprecation warning
This commit is contained in:
1 parent
27c3924e33
commit
7ccf03534d
1 file changed
+7
@@ -1705,6 +1705,11 @@ std::string XcodeProvider::getHash(std::string key) {
|
||||
bool isSeparator(char s) { return (s == '-'); }
|
||||
|
||||
#ifdef MACOSX
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
// CC_MD5 is declared deprecated because MD5 is not a secure algorithm
|
||||
// but this code is not about security
|
||||
|
||||
std::string XcodeProvider::md5(std::string key) {
|
||||
unsigned char md[CC_MD5_DIGEST_LENGTH];
|
||||
CC_MD5(key.c_str(), (CC_LONG) key.length(), md);
|
||||
@@ -1715,6 +1720,8 @@ std::string XcodeProvider::md5(std::string key) {
|
||||
}
|
||||
return stream.str();
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
std::string XcodeProvider::newHash() const {
|
||||
|
||||
Reference in new issue
Block a user