summaryrefslogtreecommitdiff
path: root/include/rtthread.h
diff options
context:
space:
mode:
authorChen Wang <[email protected]>2024-06-13 11:04:39 +0800
committerChen Wang <[email protected]>2024-07-17 09:05:26 +0800
commit2d5eb2669f3fd9b4a1b52cf25d19a3915b767cae (patch)
tree0ead3fd94a7a40799601c15986138ce95b8fe96a /include/rtthread.h
parent1d78d11567bc2187d10ca94e63c39cc95ff1195d (diff)
bsp: cvitek: remove warning when building wdt driver
``` ./bsp/cvitek/drivers/drv_wdt.c: In function '_wdt_control': warning: assignment to 'void *' from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion] 119 | wdt_device->parent.user_data = (rt_uint32_t)(*(rt_uint32_t *)arg); | ^ warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 122 | *(rt_uint32_t *)arg = (rt_uint32_t)wdt_device->parent.user_data; | ^ ``` Rootcasue: It's not portable to store integar in a pointer. Solution: use global _wdt_dev to store the timeout value. Signed-off-by: Chen Wang <[email protected]>
Diffstat (limited to 'include/rtthread.h')
0 files changed, 0 insertions, 0 deletions