Fix clang build failure

This commit is contained in:
Jasmine Iwanek
2023-07-26 10:57:01 -04:00
parent 937cadf054
commit d2f42198fd
47 changed files with 119 additions and 68 deletions

View File

@@ -27,6 +27,7 @@
#include <86box/timer.h>
#include <86box/i2c.h>
#include <86box/smbus.h>
#include <86box/plat_fallthrough.h>
#ifdef ENABLE_SMBUS_PIIX4_LOG
int smbus_piix4_do_log = ENABLE_SMBUS_PIIX4_LOG;
@@ -195,7 +196,7 @@ smbus_piix4_write(uint16_t addr, uint8_t val, void *priv)
timer_bytes++;
}
#ifndef __APPLE__
#ifdef FALLTHROUGH_ANNOTATION
[[fallthrough]];
#endif
@@ -216,7 +217,7 @@ smbus_piix4_write(uint16_t addr, uint8_t val, void *priv)
case 0x5: /* block R/W */
timer_bytes++; /* count the SMBus length byte now */
#ifndef __APPLE__
#ifdef FALLTHROUGH_ANNOTATION
[[fallthrough]];
#endif
@@ -251,7 +252,7 @@ smbus_piix4_write(uint16_t addr, uint8_t val, void *priv)
i2c_write(i2c_smbus, smbus_addr, dev->cmd);
timer_bytes++;
#ifndef __APPLE__
#ifdef FALLTHROUGH_ANNOTATION
[[fallthrough]];
#endif