-
Notifications
You must be signed in to change notification settings - Fork 159
‘value’may be used uninitialized in this function kbd_io
#3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I meet the same error as you, Have you address it ? |
in function static void kbd_io(struct kvm_cpu *vcpu, u64 addr, u8 *data, u32 len,
u8 is_write, void *ptr)
{
u8 value = 0 ; //set default value
if (is_write)
value = ioport__read8(data);
switch (addr) {
case I8042_COMMAND_REG:
if (is_write)
kbd_write_command(vcpu->kvm, value);
else
value = kbd_read_status();
break;
.... |
@chennbnbnb Thank you, it works. |
@xinying2 This info is helpful, thanks. |
@chennbnbnb please, create a pull request. |
Hi @leitao , I found this issue was not updated for a few days, and maybe other guys will encounter the issue when they try to use kvmtools for their developing or studying. Could you please review the above pr when convenient. Thanks. |
When build with gcc (GCC) 8.4.1, i got a error
The text was updated successfully, but these errors were encountered: