From b0b3fc4eaaef59d43b3f48ab2b9e4a978b141bad Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Wed, 24 Aug 2011 11:30:06 +0100 Subject: [PATCH] Fix compile errors reported by -Wall -Werror on Mac Correct argument types and return a value from UpdateDialogCocoa::updateRetryCancel() --- src/ProcessUtils.cpp | 2 +- src/UpdateDialogCocoa.mm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ProcessUtils.cpp b/src/ProcessUtils.cpp index 0707440..aa27fad 100644 --- a/src/ProcessUtils.cpp +++ b/src/ProcessUtils.cpp @@ -195,7 +195,7 @@ void ProcessUtils::runElevatedMac(const std::string& executable, char** argv; argv = (char**) malloc(sizeof(char*) * args.size() + 1); - int i = 0; + unsigned int i = 0; for (std::list::const_iterator iter = args.begin(); iter != args.end(); iter++) { argv[i] = strdup(iter->c_str()); diff --git a/src/UpdateDialogCocoa.mm b/src/UpdateDialogCocoa.mm index 69ae964..dc1e972 100644 --- a/src/UpdateDialogCocoa.mm +++ b/src/UpdateDialogCocoa.mm @@ -147,6 +147,7 @@ void UpdateDialogCocoa::updateError(const std::string& errorMessage) bool UpdateDialogCocoa::updateRetryCancel(const std::string& message) { // TODO + return false; } void UpdateDialogCocoa::updateProgress(int percentage)