Bug 1190148 - Fix warnings in toolkit/crashreporter/client and mark as FAIL_ON_WARNINGS. r=ted

This commit is contained in:
Chris Peterson 2015-08-01 11:59:40 -07:00
Родитель cd271eee14
Коммит 1227e63de1
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -409,17 +409,15 @@ bool UIMoveFile(const string& file, const string& newfile)
}
if (pID == 0) {
char* const args[4] = {
"mv",
const_cast<char*>("mv"),
strdup(file.c_str()),
strdup(newfile.c_str()),
0
};
if (args[1] && args[2])
execve("/bin/mv", args, 0);
if (args[1])
free(args[1]);
if (args[2])
free(args[2]);
free(args[1]);
free(args[2]);
exit(-1);
}
int status;

Просмотреть файл

@ -279,7 +279,7 @@ static bool RestartApplication()
modalDelegate:nil didEndSelector:nil contextInfo:nil];
}
- (IBAction)viewReportOkClicked:(id)sender;
- (IBAction)viewReportOkClicked:(id)sender
{
[mViewReportWindow orderOut:nil];
[NSApp endSheet:mViewReportWindow];

Просмотреть файл

@ -73,3 +73,5 @@ RCINCLUDE = 'crashreporter.rc'
DISABLE_STL_WRAPPING = True
include('/toolkit/crashreporter/crashreporter.mozbuild')
FAIL_ON_WARNINGS = True