mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
terminal: fix warning about uninitialized variable
In fact the struct member `value` was not initialized for Invalid_entry.
This commit is contained in:
committed by
Norman Feske
parent
0b5f901e58
commit
289cfa5fcf
@@ -8,6 +8,7 @@ install_config {
|
||||
<service name="ROM"/>
|
||||
<service name="RAM"/>
|
||||
<service name="LOG"/>
|
||||
<service name="RM"/>
|
||||
</parent-provides>
|
||||
<default-route>
|
||||
<any-service> <any-child/> <parent/> </any-service>
|
||||
|
||||
@@ -9,6 +9,7 @@ build {
|
||||
init
|
||||
drivers/framebuffer
|
||||
drivers/input
|
||||
drivers/timer
|
||||
drivers/pci
|
||||
server/nitpicker
|
||||
server/nit_fb
|
||||
|
||||
@@ -71,8 +71,8 @@ namespace Terminal {
|
||||
{
|
||||
enum { INVALID, NUMBER, CODE };
|
||||
|
||||
int type;
|
||||
int value;
|
||||
int type = INVALID;
|
||||
int value = 0;
|
||||
};
|
||||
|
||||
struct Number_entry : Entry
|
||||
@@ -85,10 +85,7 @@ namespace Terminal {
|
||||
Code_entry(int code) { type = CODE, value = code; }
|
||||
};
|
||||
|
||||
struct Invalid_entry : Entry
|
||||
{
|
||||
Invalid_entry() { type = INVALID; }
|
||||
};
|
||||
struct Invalid_entry : Entry { };
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user