diff options
author | Antonio Borneo <antonio.borneo@foss.st.com> | 2023-06-01 17:56:14 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-06-17 07:30:00 +0100 |
commit | 48f31e496488a25f443c0df52464da446fb1d10c (patch) | |
tree | 50c98b30b52e482f4e791b060d53bde94737a53a /lib/test_bitmap.c | |
parent | 1c5187968846fd252d42924fd54f3aad5a6ad7ff (diff) |
irqchip/stm32-exti: Fix warning on initialized field overwritten
While compiling with W=1, both gcc and clang complain about a
tricky way to initialize an array by filling it with a non-zero
value and then overrride some of the array elements.
In this case the override is intentional, so just disable the
specific warning for only this part of the code.
Note: the flag "-Woverride-init" is recognized by both compilers,
but the warning msg from clang reports "-Winitializer-overrides".
The doc of clang clarifies that the two flags are synonyms, so use
here only the flag name common on both compilers.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Fixes: c297493336b7 ("irqchip/stm32-exti: Simplify irq description table")
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230601155614.34490-1-antonio.borneo@foss.st.com
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions