Update for Xcode 11

This commit is contained in:
Devin Vaukz 2020-01-20 20:32:09 -08:00
parent 62e241f31e
commit d7c65997a4
9 changed files with 10 additions and 9 deletions

View File

@ -4072,7 +4072,7 @@
D02FEB2D1890FF88004E88ED /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1130;
ORGANIZATIONNAME = DeVaukz;
TargetAttributes = {
D0A3BB731A68EB9D00D663A0 = {
@ -4082,7 +4082,7 @@
};
buildConfigurationList = D02FEB301890FF88004E88ED /* Build configuration list for PBXProject "MachOKit" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,

View File

@ -38,6 +38,7 @@
//|++++++++++++++++++++++++++++++++++++|//
+ (uint32_t)canInstantiateWithSectionLoadCommand:(id<MKLCSection>)sectionLoadCommand inSegment:(MKSegment*)segment
{
#pragma unused (segment)
if (self != MKCFStringSection.class)
return 0;

View File

@ -72,7 +72,7 @@
{
[aCoder encodeObject:self.rawValueFormatter forKey:@"rawValueFormatter"];
[aCoder encodeObject:self.refinedValueFormatter forKey:@"refinedValueFormatter"];
[aCoder encodeInteger:self.style forKey:@"style"];
[aCoder encodeInteger:(NSInteger)self.style forKey:@"style"];
}
////

View File

@ -68,7 +68,7 @@
- (void)encodeWithCoder:(NSCoder*)aCoder
{
[aCoder encodeObject:self.options forKey:@"options"];
[aCoder encodeInteger:self.zeroBehavior forKey:@"zeroBehavior"];
[aCoder encodeInteger:(NSInteger)self.zeroBehavior forKey:@"zeroBehavior"];
}
////

View File

@ -126,7 +126,7 @@
for (MKNodeFieldTypeBitfieldMask *bits in _bits) {
NSNumber *mask = bits.mask;
if (mask)
if (mask != nil)
[masks addObject:mask];
}

View File

@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
//! @name Node Address Types
//! @relates MKAddressedNode
//!
typedef NS_ENUM(NSUInteger, MKNodeAddressType) {
typedef NS_CLOSED_ENUM(NSUInteger, MKNodeAddressType) {
//! The address of the node with respect to its \ref memoryMap.
//!
//! @details

View File

@ -154,7 +154,7 @@ bool ReadTerminalSize(uint64_t *result, size_t *size, mk_vm_offset_t offset, MKB
NSError *branchError = nil;
if ([self.memoryMap copyBytesAtOffset:offset fromAddress:self.nodeContextAddress into:&_childCount length:sizeof(uint8_t) requireFull:YES error:&branchError] < sizeof(uint8_t)) {
MK_ERROR_OUT = [NSError mk_errorWithDomain:MKErrorDomain code:MK_EINTERNAL_ERROR underlyingError:branchError description:@"Could not read child count."];;
MK_ERROR_OUT = [NSError mk_errorWithDomain:MKErrorDomain code:MK_EINTERNAL_ERROR underlyingError:branchError description:@"Could not read child count."];
[self release]; return nil;
}
if ((err = mk_vm_offset_add(offset, 1, &offset))) {

View File

@ -97,7 +97,7 @@ mk_load_command_source_version_copy_version_string(mk_load_command_ref load_comm
_MK_LOAD_COMMAND_NOT_NULL(load_command, return 0);
_MK_LOAD_COMMAND_IS_A(load_command, _mk_load_command_source_version_class, return 0);
uint32_t components[5];
uint32_t components[5] = {0};
mk_load_command_source_version_copy_components(load_command, components);
return (size_t)snprintf(output, output_len, "%i.%i.%i.%i.%i", components[0], components[1], components[2], components[3], components[4]);

View File

@ -31,7 +31,7 @@
static size_t
_mk_load_command_uuid_copy_description(mk_load_command_ref load_command, char *output, size_t output_len)
{
struct uuid_command *mach_uuid_command = (struct uuid_command*)load_command.load_command->mach_load_command;
struct uuid_command *mach_uuid_command;
char uuid_pretty_print[sizeof(mach_uuid_command->uuid) * 2 + 4 + 1];
mk_load_command_uuid_copy_prety_uuid(load_command, true, uuid_pretty_print, sizeof(uuid_pretty_print));