From aef91917f7ae66da1e93e1f4c1b21f5b2555ad35 Mon Sep 17 00:00:00 2001 From: João Silva Date: Wed, 16 Aug 2017 17:59:11 +0100 Subject: Changed compile-time flags to use C89 and fixed new warnings raised. --- source/srtc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/srtc.c') 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) -- cgit v1.2.3