Bug 1202971 (part 2) - Fix compile warnings in toolkit/mozapps/update/tests. r=rstrong.

This commit is contained in:
Nicholas Nethercote 2015-09-15 17:39:12 -07:00
parent 21934537ce
commit 22d80aeb7e
2 changed files with 3 additions and 4 deletions

View File

@ -245,7 +245,9 @@ int NS_main(int argc, NS_tchar **argv)
NS_tfputs(NS_T("test"), file);
fclose(file);
}
symlink(path, argv[5]);
if (symlink(path, argv[5]) != 0) {
return 1;
}
NS_tsnprintf(path, sizeof(path)/sizeof(path[0]),
NS_T("%s/%s"), NS_T("/tmp"), argv[2]);
if (argc > 6 && !NS_tstrcmp(argv[6], NS_T("change-perm"))) {

View File

@ -57,6 +57,3 @@ if CONFIG['OS_ARCH'] == 'WINNT':
USE_STATIC_LIBS = True
if CONFIG['GNU_CC']:
WIN32_EXE_LDFLAGS += ['-municode']
# XXX: We should fix these warnings
ALLOW_COMPILER_WARNINGS = True