forked from 0ad/0ad
Fix GCC warnings
This was SVN commit r7192.
This commit is contained in:
parent
44066f5ae4
commit
5174a0a1ce
@ -42,7 +42,7 @@ public:
|
||||
TS_ASSERT_EQUALS(read_le32(buf), (u32)0x78563412); // read correct value
|
||||
debug_SkipErrors(ERR::FAIL);
|
||||
TS_ASSERT(da_read(&da, buf, 1) < 0); // no more data left
|
||||
TS_ASSERT_EQUALS(debug_StopSkippingErrors(), 1);
|
||||
TS_ASSERT_EQUALS(debug_StopSkippingErrors(), (size_t)1);
|
||||
TS_ASSERT_OK(da_free(&da));
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
TS_ASSERT_EQUALS(rand(1, 0), size_t(0));
|
||||
TS_ASSERT_EQUALS(rand(2, ~0u), size_t(0));
|
||||
const size_t numSkipped = debug_StopSkippingErrors();
|
||||
TS_ASSERT_EQUALS(numSkipped, 2);
|
||||
TS_ASSERT_EQUALS(numSkipped, (size_t)2);
|
||||
}
|
||||
|
||||
// returned number must be in [min, max)
|
||||
|
@ -168,7 +168,7 @@ public:
|
||||
|
||||
#if EMULATE_SECURE_CRT
|
||||
# define SKIP_ERRORS(err) debug_SkipErrors(ERR::INVALID_PARAM)
|
||||
# define STOP_SKIPPING_ERRORS(expectedCount) TS_ASSERT_EQUALS(debug_StopSkippingErrors(), expectedCount)
|
||||
# define STOP_SKIPPING_ERRORS(expectedCount) TS_ASSERT_EQUALS(debug_StopSkippingErrors(), (size_t)expectedCount)
|
||||
#else
|
||||
# define SKIP_ERRORS(err) (void)0
|
||||
# define STOP_SKIPPING_ERRORS(expectedCount) (void)0
|
||||
|
Loading…
Reference in New Issue
Block a user