all repos — mgba @ 7ea054ee01d0203fd9e50bc6263344d185cb6176

mGBA Game Boy Advance Emulator

All: More warning fixing
Vicki Pfau vi@endrift.com
Wed, 08 May 2019 11:25:31 -0700
commit

7ea054ee01d0203fd9e50bc6263344d185cb6176

parent

f39ab5b35372ed57299ee65d5fb7c20830dabfb8

3 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/core/timing.csrc/core/timing.c

@@ -14,6 +14,7 @@ timing->nextEvent = nextEvent;

} void mTimingDeinit(struct mTiming* timing) { + UNUSED(timing); } void mTimingClear(struct mTiming* timing) {
M src/gba/extra/battlechip.csrc/gba/extra/battlechip.c

@@ -94,6 +94,7 @@ mTimingSchedule(&gate->d.p->p->timing, &gate->event, cycles);

} void _battlechipTransferEvent(struct mTiming* timing, void* user, uint32_t cyclesLate) { + UNUSED(timing); struct GBASIOBattlechipGate* gate = user; if (gate->d.p->mode == SIO_NORMAL_32) {
M src/util/test/suite.hsrc/util/test/suite.h

@@ -18,7 +18,7 @@ #define M_TEST_SUITE_DEFINE_TEARDOWN(NAME, ...) M_TEST_SUITE_DEFINE_EX(NAME, NULL, _testSuite_teardown_ ## NAME, __VA_ARGS__)

#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); \