Skip to content

Commit e714b45

Browse files
committed
Version 2.0b20 - fix a few code warnings, don't strip symbols from signed binaries
1 parent 08aada2 commit e714b45

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

TabletMagic.xcodeproj/project.pbxproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@
587587
isa = XCBuildConfiguration;
588588
buildSettings = {
589589
COMBINE_HIDPI_IMAGES = YES;
590+
COPY_PHASE_STRIP = NO;
590591
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
591592
"GCC_ENABLE_OBJC_GC[arch=x86_64]" = supported;
592593
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -678,7 +679,7 @@
678679
isa = XCBuildConfiguration;
679680
buildSettings = {
680681
ALWAYS_SEARCH_USER_PATHS = NO;
681-
COPY_PHASE_STRIP = YES;
682+
COPY_PHASE_STRIP = NO;
682683
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
683684
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
684685
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;

prefpane/TMController.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ - (BOOL)startDaemon {
928928

929929
if ( errAuthorizationSuccess != result ) {
930930
[ textTabletInfo setStringValue:[ thePane localizedString:kDriverNotLoaded ] ];
931-
NSLog(@"Failed to start the daemon: %d", result);
931+
NSLog(@"Failed to start the daemon: %ld", result);
932932
}
933933
}
934934

@@ -985,7 +985,7 @@ - (BOOL)killDaemon {
985985
if (args[i]) free(args[i]);
986986

987987
if ( errAuthorizationSuccess != result )
988-
NSLog(@"Failed to kill the daemon: %d", result);
988+
NSLog(@"Failed to kill the daemon: %ld", result);
989989

990990
if (file) fclose(file);
991991
}
@@ -1007,7 +1007,7 @@ - (void)setupAuthorization {
10071007

10081008
result = AuthorizationCreate(nil, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &fAuthorization);
10091009
if (result != errAuthorizationSuccess) {
1010-
NSLog(@"Failed to create an authorization record: %d", result);
1010+
NSLog(@"Failed to create an authorization record: %ld", result);
10111011
fAuthorization = nil;
10121012
}
10131013
}
@@ -1018,7 +1018,7 @@ - (void)cleanUpAuthorization {
10181018
result = AuthorizationFree(fAuthorization, kAuthorizationFlagDestroyRights);
10191019

10201020
if ( result != errAuthorizationSuccess )
1021-
NSLog(@"Failed to free the authorization record: %d", result);
1021+
NSLog(@"Failed to free the authorization record: %ld", result);
10221022
}
10231023

10241024
//
@@ -1308,7 +1308,7 @@ - (NSString*)settingsStringFromControls {
13081308
// Tilt checkbox
13091309
if (NSOnState == [ checkTilt state ]) bits |= 0x00000010;
13101310

1311-
return [ NSString stringWithFormat:@"%08X,%03d,%02d,%04d,%04d",
1311+
return [ NSString stringWithFormat:@"%08lX,%03d,%02d,%04d,%04d",
13121312
bits,
13131313
[ editIncrement intValue ],
13141314
[ editInterval intValue ],
@@ -1742,7 +1742,7 @@ - (char*)runLaunchHelper:(NSString*)argsString {
17421742
// NSLog(@"The Helper said: %s (%d)", outputBuffer, strlen(outputBuffer));
17431743

17441744
if ( errAuthorizationSuccess != result )
1745-
NSLog(@"Failed to run the Launch Helper: %d", result);
1745+
NSLog(@"Failed to run the Launch Helper: %ld", result);
17461746

17471747
return outputBuffer;
17481748
}

0 commit comments

Comments
 (0)