зеркало из https://github.com/mozilla/gecko-dev.git
Bug 461199 followup: Fix build warning "ISO C++ does not support the 'z' printf length modifier". rs=sdwilsh
This commit is contained in:
Родитель
706fd07eda
Коммит
0b8512ee0a
|
@ -45,13 +45,7 @@
|
|||
#error "Must #define TEST_FILE before include places_test_harness_tail.h"
|
||||
#endif
|
||||
|
||||
size_t gTestsIndex = 0;
|
||||
|
||||
#ifdef XP_WIN
|
||||
#define SIZE_T "%Iu"
|
||||
#else
|
||||
#define SIZE_T "%zu"
|
||||
#endif
|
||||
int gTestsIndex = 0;
|
||||
|
||||
#define TEST_INFO_STR "TEST-INFO | (%s) | "
|
||||
|
||||
|
@ -81,7 +75,7 @@ run_next_test()
|
|||
do_check_success(NS_DispatchToCurrentThread(event));
|
||||
}
|
||||
|
||||
size_t gPendingTests = 0;
|
||||
int gPendingTests = 0;
|
||||
|
||||
void
|
||||
do_test_pending()
|
||||
|
@ -120,7 +114,7 @@ main(int aArgc,
|
|||
passed(TEST_FILE);
|
||||
}
|
||||
|
||||
(void)fprintf(stderr, TEST_INFO_STR SIZE_T " of " SIZE_T " tests passed\n",
|
||||
(void)fprintf(stderr, TEST_INFO_STR "%d of %d tests passed\n",
|
||||
TEST_FILE, gPassedTests, gTotalTests);
|
||||
|
||||
return gPassedTests == gTotalTests ? 0 : -1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче