Commit ed257f7c authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by chrome-bot
Browse files

mkbp: Initialize pressed_buttons variable to avoid build error

This initializes the pressed_buttons variable to avoid triggering a use
before initialization error with GCC 7.

TEST=Build depthcharge with GCC 7

Change-Id: I2b532d40c399577a2ed0ae8c56dfb73e847b979c
Signed-off-by: default avatarPaul Kocialkowski <>

Commit-Ready: Stefan Reinauer <>
Tested-by: default avatarStefan Reinauer <>
Reviewed-by: default avatarJulius Werner <>
Reviewed-by: default avatarPatrick Georgi <>
parent 83724941
......@@ -106,7 +106,7 @@ static int read_scancodes(Modifier *modifiers, uint16_t *codes, int max_codes)
static struct cros_ec_keyscan last_scan;
static struct ec_response_get_next_event event;
static struct cros_ec_keyscan scan;
uint32_t pressed_buttons;
uint32_t pressed_buttons = 0;
*modifiers = ModifierNone;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment