Skip to content

Commit

Permalink
after 4c69cae a compile produces the (#539)
Browse files Browse the repository at this point in the history
following warning:
warning: missing initializer for field ‘set_swdclk’ of ‘stlink_backend_t
{aka struct _stlink_backend}’ [-Wmissing-field-initializers]

silence the warning and expand comment
  • Loading branch information
torstehu authored and xor-gate committed Jan 9, 2017
1 parent 55fddc2 commit ba898b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sg.c
Expand Up @@ -933,7 +933,8 @@ static stlink_backend_t _stlink_sg_backend = {
_stlink_sg_step,
_stlink_sg_current_mode,
_stlink_sg_force_debug,
NULL
NULL, /* target_voltage */
NULL /* set_swdclk */
};

static stlink_t* stlink_open(const int verbose) {
Expand Down

0 comments on commit ba898b1

Please sign in to comment.