2
0

Declare __unused if not declared by compiler.

This commit is contained in:
Maarten Billemont 2017-08-30 13:27:59 -04:00
parent aeeab7dbf6
commit 17de69834e
2 changed files with 5 additions and 1 deletions

View File

@ -126,7 +126,7 @@ static MPSiteKey mpw_siteKey_v0(
} }
static const char *mpw_sitePasswordFromTemplate_v0( static const char *mpw_sitePasswordFromTemplate_v0(
MPMasterKey __unused masterKey, MPSiteKey siteKey, MPResultType resultType, const char __unused *resultParam) { MPMasterKey __unused masterKey, MPSiteKey siteKey, MPResultType resultType, const char __unused *resultParam) {
const char *_siteKey = (const char *)siteKey; const char *_siteKey = (const char *)siteKey;

View File

@ -29,6 +29,10 @@
#define mpw_enum(_type, _name) _type _name; enum #define mpw_enum(_type, _name) _type _name; enum
#endif #endif
#ifndef __unused
#define __unused __attribute__((unused))
#endif
//// Types. //// Types.
#define MPMasterKeySize 64 /* bytes */ #define MPMasterKeySize 64 /* bytes */