diff options
author | Twinaphex | 2017-08-16 19:21:08 +0200 |
---|---|---|
committer | GitHub | 2017-08-16 19:21:08 +0200 |
commit | 232f8097145a9e93147893550528374052e5523d (patch) | |
tree | f1d740e45522954e48e036103268c5ccb5dcbef2 /source/srtc.c | |
parent | aa610b2ba997a945c77ce06e9a33638dedb480da (diff) | |
parent | aef91917f7ae66da1e93e1f4c1b21f5b2555ad35 (diff) | |
download | snesemu-232f8097145a9e93147893550528374052e5523d.tar.gz snesemu-232f8097145a9e93147893550528374052e5523d.tar.bz2 snesemu-232f8097145a9e93147893550528374052e5523d.zip |
Merge pull request #42 from jamsilva/master
Changed compile-time flags to use C89 and fixed new warnings raised.
Diffstat (limited to 'source/srtc.c')
-rw-r--r-- | source/srtc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/srtc.c b/source/srtc.c index e86b6b2..0bfa7d9 100644 --- a/source/srtc.c +++ b/source/srtc.c @@ -251,6 +251,7 @@ void S9xUpdateSrtcTime(void) /**********************************************************************************************/ void S9xSetSRTC(uint8_t data, uint16_t Address) { + (void) Address; data &= 0x0F; /* Data is only 4-bits, mask out unused bits. */ if (data >= 0xD) /* It's an RTC command */ @@ -319,6 +320,7 @@ void S9xSetSRTC(uint8_t data, uint16_t Address) /**********************************************************************************************/ uint8_t S9xGetSRTC(uint16_t Address) { + (void) Address; if (rtc.mode == MODE_READ) { if (rtc.index < 0) |