mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 22:47:50 +00:00
terminal: fix warning about uninitialized variable
In fact the struct member `value` was not initialized for Invalid_entry.
This commit is contained in:
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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user