summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2024-10-11 18:19:31 -0400
committerSolomon Peachy <pizza@shaftnet.org>2024-10-11 22:56:44 -0400
commit7d60b13584fbc77f17d89372b2a0a2ad8cb9d78a (patch)
treeabea9a6cb29f3bb7a1193ce23d6ada1f52e86d4a
parent49b6853c19c5ae6414efa2aca379eccb9a573f98 (diff)
downloadrockbox-7d60b13584.tar.gz
rockbox-7d60b13584.zip
pdf50606: Fix questionable code that GCC9 complains about
Instead of: bool &= ~bool; do this: bool &= !bool; Change-Id: I815f56c98596d6c58390e843a1e3290d3525db72
-rw-r--r--firmware/drivers/rtc/rtc_pcf50606.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/rtc/rtc_pcf50606.c b/firmware/drivers/rtc/rtc_pcf50606.c
index 16ae5a3e9c..8f5371635c 100644
--- a/firmware/drivers/rtc/rtc_pcf50606.c
+++ b/firmware/drivers/rtc/rtc_pcf50606.c
@@ -57,7 +57,7 @@ int rtc_read_datetime(struct tm *tm)
tm->tm_mday = buf[4];
tm->tm_mon = buf[5] - 1;
-#ifdef IRIVER_H300_SERIES
+#ifdef IRIVER_H300_SERIES
/* Special kludge to coexist with the iriver firmware. The iriver firmware
stores the date as 1965+nn, and allows a range of 1980..2064. We use
1964+nn here to make leap years work correctly, so the date will be one
@@ -158,7 +158,7 @@ bool rtc_check_alarm_started(bool release_alarm)
if (run_before) {
rc = alarm_state;
- alarm_state &= ~release_alarm;
+ alarm_state &= !release_alarm;
} else {
char rt[3], at[3];
/* The Ipod bootloader seems to read (and thus clear) the PCF interrupt