From 3be2aee60c652d0e24bde3f40d0357328678c4bb Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Wed, 2 Mar 2011 17:56:54 +0000 Subject: [PATCH 1/8] changed default SDK to the current one fixed non-literal format string warning --- Configurations/ConfigCommon.xcconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 3be0cb86..1cd95746 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -3,7 +3,7 @@ PREBINDING = NO ZERO_LINK = NO CURRENT_PROJECT_VERSION = 1.5 -SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk +SDKROOT = macosx MACOSX_DEPLOYMENT_TARGET[arch=ppc] = 10.4 MACOSX_DEPLOYMENT_TARGET[arch=ppc64] = 10.5 MACOSX_DEPLOYMENT_TARGET[arch=i386] = 10.4 @@ -47,4 +47,4 @@ GCC_WARN_UNUSED_VALUE = YES GCC_WARN_UNUSED_PARAMETER = YES GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES GCC_WARN_UNDECLARED_SELECTOR = YES -WARNING_CFLAGS = -Wall -Wno-unused-parameter -Werror -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-format-attribute -Wpacked -Wredundant-decls -Winline -Wdisabled-optimization -Wformat=2 -Winvalid-pch +WARNING_CFLAGS = -Wall -Wno-unused-parameter -Werror -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-format-attribute -Wpacked -Wredundant-decls -Winline -Wdisabled-optimization -Wformat -Wformat-security -Wformat-y2k -Winvalid-pch From da4ca6649768523c15aa731af6f4a54fd93312d3 Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Wed, 2 Mar 2011 17:57:51 +0000 Subject: [PATCH 2/8] project update caused by opening in XC4 I think --- Sparkle.xcodeproj/project.pbxproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 00cf5bce..37ee3501 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -835,6 +835,7 @@ isa = PBXProject; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */; compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; hasScannedForEncodings = 1; knownRegions = ( English, From 6efb28485d160d0bea27d289ea5556d6fc0a9b45 Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Wed, 2 Mar 2011 17:58:04 +0000 Subject: [PATCH 3/8] added xc4 workspace --- Sparkle.xcworkspace/contents.xcworkspacedata | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Sparkle.xcworkspace/contents.xcworkspacedata diff --git a/Sparkle.xcworkspace/contents.xcworkspacedata b/Sparkle.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..4cb78749 --- /dev/null +++ b/Sparkle.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + From e162094aece1a0a7e706ea53450e86dc34735ff8 Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Wed, 2 Mar 2011 17:58:26 +0000 Subject: [PATCH 4/8] added xc4 workspace --- .../project.xcworkspace/contents.xcworkspacedata | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Sparkle.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Sparkle.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Sparkle.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..192f7326 --- /dev/null +++ b/Sparkle.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + From 53ea1ffe73bde5f1dae5542d4ac5fefec4f7a14f Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Sun, 22 Apr 2012 13:36:56 +0100 Subject: [PATCH 5/8] Updated project settings. --- Sparkle.xcodeproj/project.pbxproj | 2 +- Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 022976a5..db2af2b0 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -880,7 +880,7 @@ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0420; + LastUpgradeCheck = 0430; }; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */; compatibilityVersion = "Xcode 3.2"; diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme index f81adc7d..a1e5ba37 100644 --- a/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme @@ -1,5 +1,6 @@ Date: Thu, 26 Apr 2012 10:19:38 +0100 Subject: [PATCH 6/8] Removed -fsingle-precision-constant flag which LLVM doesn't recognise --- Configurations/ConfigBinaryDeltaDebug.xcconfig | 2 +- Configurations/ConfigFrameworkDebug.xcconfig | 2 +- Configurations/ConfigRelaunchDebug.xcconfig | 2 +- Configurations/ConfigTestAppDebug.xcconfig | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Configurations/ConfigBinaryDeltaDebug.xcconfig b/Configurations/ConfigBinaryDeltaDebug.xcconfig index 170c9756..cd893a71 100644 --- a/Configurations/ConfigBinaryDeltaDebug.xcconfig +++ b/Configurations/ConfigBinaryDeltaDebug.xcconfig @@ -2,4 +2,4 @@ #include "ConfigCommonDebug.xcconfig" #include "ConfigBinaryDelta.xcconfig" -OTHER_CFLAGS = -fsingle-precision-constant -DDEBUG +OTHER_CFLAGS = -DDEBUG diff --git a/Configurations/ConfigFrameworkDebug.xcconfig b/Configurations/ConfigFrameworkDebug.xcconfig index 4f5379ef..e256c490 100644 --- a/Configurations/ConfigFrameworkDebug.xcconfig +++ b/Configurations/ConfigFrameworkDebug.xcconfig @@ -2,4 +2,4 @@ #include "ConfigCommonDebug.xcconfig" #include "ConfigFramework.xcconfig" -OTHER_CFLAGS = -fsingle-precision-constant -DDEBUG +OTHER_CFLAGS = -DDEBUG diff --git a/Configurations/ConfigRelaunchDebug.xcconfig b/Configurations/ConfigRelaunchDebug.xcconfig index 6e50fb75..94094110 100644 --- a/Configurations/ConfigRelaunchDebug.xcconfig +++ b/Configurations/ConfigRelaunchDebug.xcconfig @@ -2,4 +2,4 @@ #include "ConfigCommonDebug.xcconfig" #include "ConfigRelaunch.xcconfig" -OTHER_CFLAGS = -fsingle-precision-constant -DDEBUG +OTHER_CFLAGS = -DDEBUG diff --git a/Configurations/ConfigTestAppDebug.xcconfig b/Configurations/ConfigTestAppDebug.xcconfig index f1137b86..9833128e 100644 --- a/Configurations/ConfigTestAppDebug.xcconfig +++ b/Configurations/ConfigTestAppDebug.xcconfig @@ -2,4 +2,4 @@ #include "ConfigCommonDebug.xcconfig" #include "ConfigTestApp.xcconfig" -OTHER_CFLAGS = -fsingle-precision-constant -DDEBUG +OTHER_CFLAGS = -DDEBUG From 805a5ac66a99bfb7e6f97dacdc071049195b20bd Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Thu, 26 Apr 2012 10:20:41 +0100 Subject: [PATCH 7/8] fixes for warnings thrown up by xcode 4.4 / llvm --- SUHost.m | 2 +- SUUIBasedUpdateDriver.m | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SUHost.m b/SUHost.m index 5016e857..71ba84d5 100644 --- a/SUHost.m +++ b/SUHost.m @@ -256,7 +256,7 @@ OSErr err3 = Gestalt(gestaltSystemVersionBugFix, &bugfix); if (!err1 && !err2 && !err3) { - verStr = [NSString stringWithFormat:@"%d.%d.%d", major, minor, bugfix]; + verStr = [NSString stringWithFormat:@"%ld.%ld.%ld", (long) major, (long) minor, (long) bugfix]; } else #endif diff --git a/SUUIBasedUpdateDriver.m b/SUUIBasedUpdateDriver.m index 2b209590..0040cd32 100644 --- a/SUUIBasedUpdateDriver.m +++ b/SUUIBasedUpdateDriver.m @@ -187,7 +187,8 @@ - (void)abortUpdateWithError:(NSError *)error { - NSAlert *alert = [NSAlert alertWithMessageText:SULocalizedString(@"Update Error!", nil) defaultButton:SULocalizedString(@"Cancel Update", nil) alternateButton:nil otherButton:nil informativeTextWithFormat:[error localizedDescription]]; + NSString* format = [error localizedDescription]; + NSAlert *alert = [NSAlert alertWithMessageText:SULocalizedString(@"Update Error!", nil) defaultButton:SULocalizedString(@"Cancel Update", nil) alternateButton:nil otherButton:nil informativeTextWithFormat:@"%@", format]; [self showModalAlert:alert]; [super abortUpdateWithError:error]; } From 39546b8e034a1878b0b078dad186f0d63f68c436 Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Thu, 26 Apr 2012 10:37:21 +0100 Subject: [PATCH 8/8] xcode 4.4 project settings update --- Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme index a1e5ba37..a76942de 100644 --- a/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme @@ -1,6 +1,6 @@