mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 17:18:28 +08:00
sched/irq: Avoid directly converting variables of type uintptr_t to void*
According to MISRA C-2012 Rule 11.6, a cast shall not be performed between pointer to void and an arithmetic type Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com>
This commit is contained in:
@@ -86,7 +86,7 @@ static int isr_thread_main(int argc, FAR char *argv[])
|
||||
int irq = atoi(argv[1]);
|
||||
xcpt_t isr = (xcpt_t)((uintptr_t)strtoul(argv[2], NULL, 16));
|
||||
xcpt_t isrthread = (xcpt_t)((uintptr_t)strtoul(argv[3], NULL, 16));
|
||||
FAR void *arg = (FAR void *)((uintptr_t)strtoul(argv[4], NULL, 16));
|
||||
FAR void *arg = (FAR char *)((uintptr_t)strtoul(argv[4], NULL, 16));
|
||||
struct irq_thread_info_s info;
|
||||
sem_t sem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user