1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 09:33:50 +01:00

cpu cortexm_common: fix pedantic compiler warnings

This commit is contained in:
Oleg Hahm 2015-11-28 12:39:33 +01:00
parent 810c623092
commit f24e810de5
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ void cortexm_init(void)
/* set SVC interrupt to same priority as the rest */
NVIC_SetPriority(SVCall_IRQn, CPU_DEFAULT_IRQ_PRIO);
/* initialize all vendor specific interrupts with the same value */
for (IRQn_Type i = 0; i < CPU_IRQ_NUMOF; i++) {
for (IRQn_Type i = 0; i < (int) CPU_IRQ_NUMOF; i++) {
NVIC_SetPriority(i, CPU_DEFAULT_IRQ_PRIO);
}
}

View File

@ -99,7 +99,7 @@ static inline void cpu_print_last_instruction(void)
{
register uint32_t *lr_ptr;
__asm__ __volatile__("mov %0, lr" : "=r"(lr_ptr));
printf("%p\n", lr_ptr);
printf("%p\n", (void*) lr_ptr);
}
#ifdef __cplusplus