Skip to content

Commit

Permalink
target/stm32l4: fix empty init pedantic warning
Browse files Browse the repository at this point in the history
ISO C forbids empty initializer braces before C2X
  • Loading branch information
perigoso committed Aug 10, 2023
1 parent 22a214a commit 88dfd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/stm32l4.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ static bool stm32l4_cmd_option(target_s *t, int argc, const char **argv)
const uint8_t *const opt_reg_offsets = info.offsets;

const size_t word_count = info.word_count;
uint32_t values[11] = {};
uint32_t values[11] = {0};
for (size_t i = 0; i < word_count; ++i)
values[i] = info.default_values[i];

Expand Down

0 comments on commit 88dfd52

Please sign in to comment.