mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-04 21:11:40 +00:00
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]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user