]> Git Repo - qemu.git/commit
hw/ipmi: Explicit we ignore some QEMUChrEvent in IOEventHandler
authorPhilippe Mathieu-Daudé <[email protected]>
Wed, 18 Dec 2019 17:19:57 +0000 (18:19 +0100)
committerPaolo Bonzini <[email protected]>
Tue, 7 Jan 2020 15:22:55 +0000 (16:22 +0100)
commit1d043b1ec03406442cea52680756ba19b1581f67
tree044fa0509460bda03080e87c5f588fb5e8897344
parentce25653dfb69a2c79c237dfa218029506284d41a
hw/ipmi: Explicit we ignore some QEMUChrEvent in IOEventHandler

The Chardev events are listed in the QEMUChrEvent enum. To be
able to use this enum in the IOEventHandler typedef, we need to
explicit all the events ignored by this frontend, to silent the
following GCC warning:

  hw/ipmi/ipmi_bmc_extern.c: In function ‘chr_event’:
  hw/ipmi/ipmi_bmc_extern.c:389:5: error: enumeration value ‘CHR_EVENT_BREAK’ not handled in switch [-Werror=switch]
    389 |     switch (event) {
        |     ^~~~~~
  hw/ipmi/ipmi_bmc_extern.c:389:5: error: enumeration value ‘CHR_EVENT_MUX_IN’ not handled in switch [-Werror=switch]
  hw/ipmi/ipmi_bmc_extern.c:389:5: error: enumeration value ‘CHR_EVENT_MUX_OUT’ not handled in switch [-Werror=switch]
  cc1: all warnings being treated as errors

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Acked-by: Corey Minyard <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <20191218172009[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/ipmi/ipmi_bmc_extern.c
This page took 0.025261 seconds and 4 git commands to generate.