All: More warning fixing

This commit is contained in:
Vicki Pfau 2019-05-08 11:25:31 -07:00
parent f39ab5b353
commit 7ea054ee01
3 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ void mTimingInit(struct mTiming* timing, int32_t* relativeCycles, int32_t* nextE
}
void mTimingDeinit(struct mTiming* timing) {
UNUSED(timing);
}
void mTimingClear(struct mTiming* timing) {

View File

@ -94,6 +94,7 @@ void _battlechipTransfer(struct GBASIOBattlechipGate* gate) {
}
void _battlechipTransferEvent(struct mTiming* timing, void* user, uint32_t cyclesLate) {
UNUSED(timing);
struct GBASIOBattlechipGate* gate = user;
if (gate->d.p->mode == SIO_NORMAL_32) {

View File

@ -18,7 +18,7 @@
#define M_TEST_SUITE_DEFINE_SETUP_TEARDOWN(NAME, ...) M_TEST_SUITE_DEFINE_EX(NAME, _testSuite_setup_ ## NAME, _testSuite_teardown_ ## NAME, __VA_ARGS__)
#define M_TEST_SUITE_DEFINE_EX(NAME, SETUP, TEARDOWN, ...) \
int main(void) { \
const static struct CMUnitTest tests[] = { \
static const struct CMUnitTest tests[] = { \
__VA_ARGS__ \
}; \
return cmocka_run_group_tests_name(# NAME, tests, SETUP, TEARDOWN); \