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.

BUG=None
BRANCH=None
TEST=Build depthcharge with GCC 7

Change-Id: I2b532d40c399577a2ed0ae8c56dfb73e847b979c
Signed-off-by: default avatarPaul Kocialkowski <contact@paulk.fr>
Reviewed-on: https://chromium-review.googlesource.com/558363


Commit-Ready: Stefan Reinauer <reinauer@google.com>
Tested-by: default avatarStefan Reinauer <reinauer@google.com>
Reviewed-by: default avatarJulius Werner <jwerner@chromium.org>
Reviewed-by: default avatarPatrick Georgi <pgeorgi@chromium.org>
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;
assert(modifiers);
*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