Declare __unused if not declared by compiler.
This commit is contained in:
parent
aeeab7dbf6
commit
17de69834e
@ -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;
|
||||||
|
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user