Skip to content
Commit 6fc58718 authored by Patryk Duda's avatar Patryk Duda Committed by Anas Nashif
Browse files

interrupt_controller: Fix clang compilation issues in intc_exti_stm32.c



Clang reports 'initializer element is not a compile-time constant' when
trying to initialize structure with elements of constant array. The
compiler is wrong in this case because the elements of the array are
known at compile time, so there are no obstacles to initialize structure
using it.

The problem was fixed by removing 'range' array and using
DT_PROP_BY_IDX() to get values directly from DT.

Signed-off-by: default avatarPatryk Duda <pdk@semihalf.com>
parent 5cb40310
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment