Apparently this is a GNU extension rather than a standard C language style.
Switch to the more correct style.
This issue is exposed by CLang and not GCC.
f_cells_t source = f_cells_t_initialize;
f_cells_t destination = f_cells_t_initialize;
- const f_cell_t cell_0 = { row: 1, column: 2 };
- const f_cell_t cell_1 = { row: 3, column: 4 };
+ const f_cell_t cell_0 = { .row = 1, .column = 2 };
+ const f_cell_t cell_1 = { .row = 3, .column = 4 };
{
const f_status_t status = f_cells_resize(length, &source);
f_cellss_t source = f_cells_t_initialize;
f_cellss_t destination = f_cells_t_initialize;
- const f_cell_t cell_0 = { row: 1, column: 2 };
- const f_cell_t cell_1 = { row: 3, column: 4 };
+ const f_cell_t cell_0 = { .row = 1, .column = 2 };
+ const f_cell_t cell_1 = { .row = 3, .column = 4 };
{
const f_status_t status = f_cellss_resize(length, &source);
f_fll_ids_t source = f_fll_ids_t_initialize;
f_fll_ids_t destination = f_fll_ids_t_initialize;
- const f_fll_id_t fll_id_0 = { name: "test", type: 1, used: 4 };
- const f_fll_id_t fll_id_1 = { name: "other", type: 2, used: 5 };
+ const f_fll_id_t fll_id_0 = { .name = "test", .type = 1, .used = 4 };
+ const f_fll_id_t fll_id_1 = { .name = "other", .type = 2, .used = 5 };
{
const f_status_t status = f_fll_ids_resize(length, &source);
f_fll_idss_t source = f_fll_ids_t_initialize;
f_fll_idss_t destination = f_fll_ids_t_initialize;
- const f_fll_id_t fll_id_0 = { name: "test", type: 1, used: 4 };
- const f_fll_id_t fll_id_1 = { name: "other", type: 2, used: 5 };
+ const f_fll_id_t fll_id_0 = { .name = "test", .type = 1, .used = 4 };
+ const f_fll_id_t fll_id_1 = { .name = "other", .type = 2, .used = 5 };
{
const f_status_t status = f_fll_idss_resize(length, &source);
f_states_t source = f_states_t_initialize;
f_states_t destination = f_states_t_initialize;
- const f_state_t state_0 = { step_large: 10, step_small: 1, handle: 0, interrupt: 0, callbacks: 0, custom: 0, data: 0 };
- const f_state_t state_1 = { step_large: 20, step_small: 2, handle: 0, interrupt: 0, callbacks: 0, custom: 0, data: 0 };
+ const f_state_t state_0 = { .step_large = 10, .step_small = 1, .handle = 0, .interrupt = 0, .callbacks = 0, .custom = 0, .data = 0 };
+ const f_state_t state_1 = { .step_large = 20, .step_small = 2, .handle = 0, .interrupt = 0, .callbacks = 0, .custom = 0, .data = 0 };
{
const f_status_t status = f_states_resize(length, &source);
f_statess_t source = f_states_t_initialize;
f_statess_t destination = f_states_t_initialize;
- const f_state_t state_0 = { step_large: 10, step_small: 1, handle: 0, interrupt: 0, callbacks: 0, custom: 0, data: 0 };
- const f_state_t state_1 = { step_large: 20, step_small: 2, handle: 0, interrupt: 0, callbacks: 0, custom: 0, data: 0 };
+ const f_state_t state_0 = { .step_large = 10, .step_small = 1, .handle = 0, .interrupt = 0, .callbacks = 0, .custom = 0, .data = 0 };
+ const f_state_t state_1 = { .step_large = 20, .step_small = 2, .handle = 0, .interrupt = 0, .callbacks = 0, .custom = 0, .data = 0 };
{
const f_status_t status = f_statess_resize(length, &source);