Assorted warning fixes
This commit is contained in:
@@ -56,7 +56,6 @@
|
||||
#include <86box/thread.h>
|
||||
#include <86box/timer.h>
|
||||
#include <86box/network.h>
|
||||
#include <86box/bswap.h>
|
||||
#include <86box/plat_unused.h>
|
||||
|
||||
/* Maximum number of times we report a link down to the guest (failure to send frame) */
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
#include <86box/timer.h>
|
||||
#include <86box/network.h>
|
||||
#include <86box/net_dp8390.h>
|
||||
#include <86box/bswap.h>
|
||||
#include <86box/plat_unused.h>
|
||||
|
||||
typedef struct threec503_t {
|
||||
|
||||
@@ -1133,7 +1133,7 @@ modem_dtr_callback_timer(void *priv)
|
||||
}
|
||||
|
||||
void
|
||||
modem_dtr_callback(serial_t *serial, int status, void *priv)
|
||||
modem_dtr_callback(UNUSED(serial_t *serial), int status, void *priv)
|
||||
{
|
||||
modem_t *dev = (modem_t *) priv;
|
||||
dev->dtrstate = !!status;
|
||||
@@ -1483,7 +1483,7 @@ modem_cmdpause_timer_callback(void *priv)
|
||||
|
||||
/* Initialize the device for use by the user. */
|
||||
static void *
|
||||
modem_init(const device_t *info)
|
||||
modem_init(UNUSED(const device_t *info))
|
||||
{
|
||||
modem_t *modem = (modem_t *) calloc(1, sizeof(modem_t));
|
||||
const char *phonebook_file = NULL;
|
||||
|
||||
@@ -66,7 +66,6 @@
|
||||
#include <86box/network.h>
|
||||
#include <86box/net_dp8390.h>
|
||||
#include <86box/net_ne2000.h>
|
||||
#include <86box/bswap.h>
|
||||
#include <86box/isapnp.h>
|
||||
#include <86box/plat_fallthrough.h>
|
||||
#include <86box/plat_unused.h>
|
||||
|
||||
@@ -46,9 +46,9 @@
|
||||
#include <86box/thread.h>
|
||||
#include <86box/network.h>
|
||||
#include <86box/net_pcnet.h>
|
||||
#include <86box/bswap.h>
|
||||
#include <86box/plat_fallthrough.h>
|
||||
#include <86box/plat_unused.h>
|
||||
#include <86box/bswap.h>
|
||||
|
||||
/* PCI info. */
|
||||
#define PCI_VENDID 0x1022 /* AMD */
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
#include <86box/thread.h>
|
||||
#include <86box/network.h>
|
||||
#include <86box/net_eeprom_nmc93cxx.h>
|
||||
#include <86box/bswap.h>
|
||||
#include <86box/nvr.h>
|
||||
#include "cpu.h"
|
||||
#include <86box/plat_unused.h>
|
||||
#include <86box/bswap.h>
|
||||
|
||||
#define PCI_PERIOD 30 /* 30 ns period = 33.333333 Mhz frequency */
|
||||
|
||||
@@ -1210,7 +1210,7 @@ rtl8139_CpCmd_read(RTL8139State *s)
|
||||
}
|
||||
|
||||
static void
|
||||
rtl8139_IntrMitigate_write(UNUSED(RTL8139State *s), uint32_t val)
|
||||
rtl8139_IntrMitigate_write(UNUSED(RTL8139State *s), UNUSED(uint32_t val))
|
||||
{
|
||||
rtl8139_log("C+ IntrMitigate register write(w) val=0x%04x\n", val);
|
||||
}
|
||||
@@ -3151,7 +3151,7 @@ rtl8139_pci_read(UNUSED(int func), int addr, void *priv)
|
||||
}
|
||||
|
||||
static void
|
||||
rtl8139_pci_write(int func, int addr, uint8_t val, void *priv)
|
||||
rtl8139_pci_write(UNUSED(int func), int addr, uint8_t val, void *priv)
|
||||
{
|
||||
RTL8139State *s = (RTL8139State *) priv;
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
#include <86box/thread.h>
|
||||
#include <86box/network.h>
|
||||
#include <86box/net_eeprom_nmc93cxx.h>
|
||||
#include <86box/bswap.h>
|
||||
#include <86box/plat_fallthrough.h>
|
||||
#include <86box/plat_unused.h>
|
||||
#include <86box/bswap.h>
|
||||
|
||||
#define ROM_PATH_DEC21140 "roms/network/dec21140/BIOS13502.BIN"
|
||||
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
#include <86box/network.h>
|
||||
#include <86box/net_dp8390.h>
|
||||
#include <86box/net_wd8003.h>
|
||||
#include <86box/bswap.h>
|
||||
#include <86box/plat_fallthrough.h>
|
||||
#include <86box/plat_unused.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user