diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-18 22:23:12 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-19 01:23:50 +0200 |
commit | 5c9ebff975b689554e0a504a9cb629aa29c90b0d (patch) | |
tree | 30d869ad1f3f95507679e494d2c976da9a9a98f3 | |
parent | c3c8291754aabc7279bcf4d08bea6d3e395e0015 (diff) |
x86/cga: silence compiler warnings
The warning, which is about a variable that may be used uninitialized,
is a false positive.
-rw-r--r-- | arch/x86/machine/cga.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/machine/cga.c b/arch/x86/machine/cga.c index 16aab407..8e03b502 100644 --- a/arch/x86/machine/cga.c +++ b/arch/x86/machine/cga.c @@ -187,7 +187,7 @@ static void cga_bbuf_update_phys_cursor(struct cga_bbuf *bbuf) { bool cursor_enabled; - uint16_t cursor; + uint16_t cursor = 0; int error; error = cga_bbuf_get_phys_cursor(bbuf, &cursor); @@ -292,7 +292,7 @@ cga_bbuf_push(struct cga_bbuf *bbuf, char c) static void cga_bbuf_newline(struct cga_bbuf *bbuf) { - uint16_t cursor, spaces[CGA_COLUMNS]; + uint16_t cursor = 0, spaces[CGA_COLUMNS]; size_t i, nr_spaces, offset; int error; |