Skip to content

Commit

Permalink
Fixup init of struct lpc_client
Browse files Browse the repository at this point in the history
Gcc 4.8 would warn:
hw/lpc-uart.c: In function 'uart_setup_os_passthrough':
hw/lpc-uart.c:428:2: error: missing initializer for field 'reset' of 'struct lpc_client' [-Werror=missing-field-initializers]

Fixes: a294077
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
stewartsmith committed Mar 3, 2017
1 parent fcb5114 commit a5c2c89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hw/lpc-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ static void uart_setup_os_passthrough(void)
char *path;

static struct lpc_client uart_lpc_os_client = {
.reset = NULL,
.interrupt = NULL,
.interrupts = 0
};

dt_add_property_strings(uart_node, "status", "ok");
Expand Down

0 comments on commit a5c2c89

Please sign in to comment.