Fix compile errors reported by -Wall -Werror on Mac

Correct argument types and return a value from UpdateDialogCocoa::updateRetryCancel()
This commit is contained in:
Robert Knight 2011-08-24 11:30:06 +01:00
parent 1318576cea
commit b0b3fc4eaa
2 changed files with 2 additions and 1 deletions

View file

@ -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<std::string>::const_iterator iter = args.begin(); iter != args.end(); iter++)
{
argv[i] = strdup(iter->c_str());

View file

@ -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)