From 5ae232b6d0752ab823b5d0a52ef0aa269fdb3aed Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 11 Oct 2025 09:28:52 +0800 Subject: bsp/w60x: fixes cppcheck: (#10781) [cpp_check.py 80 INFO] bsp/w60x/drivers/drv_rtc.c:58:11: error: Syntax Error: AST broken, binary operator '&=' doesn't have two operands. [internalAstError] [cpp_check.py 80 INFO] libcpu/arm/s3c24x0/rtc.c:34:12: error: Expression 'RTCCON|=RTCCON|=0x01' depends on order of evaluation of side effects [unknownEvaluationOrder] --- libcpu/arm/s3c24x0/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcpu') diff --git a/libcpu/arm/s3c24x0/rtc.c b/libcpu/arm/s3c24x0/rtc.c index 60703f9d94..2dda7b0334 100644 --- a/libcpu/arm/s3c24x0/rtc.c +++ b/libcpu/arm/s3c24x0/rtc.c @@ -31,7 +31,7 @@ void rt_hw_rtc_get(struct tm *ti) rt_uint8_t sec, min, hour, mday, wday, mon, year; /* enable access to RTC registers */ - RTCCON |= RTC_ENABLE; + RTC_ENABLE; /* read RTC registers */ do -- cgit v1.3.1