mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-01-22 15:31:08 +00:00
Fix compile errors reported by -Wall -Werror on Mac
Correct argument types and return a value from UpdateDialogCocoa::updateRetryCancel()
This commit is contained in:
parent
1318576cea
commit
b0b3fc4eaa
2 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue