Assorted warning fixes

This commit is contained in:
Jasmine Iwanek
2025-01-26 15:15:53 -05:00
parent a5bf0dc9c8
commit 5f273265ae
136 changed files with 1374 additions and 1291 deletions

View File

@@ -602,7 +602,7 @@ it86x1f_pnp_write_vendor_reg(uint8_t ld, uint8_t reg, uint8_t val, void *priv)
}
static void
it86x1f_write_addr(uint16_t port, uint8_t val, void *priv)
it86x1f_write_addr(UNUSED(uint16_t port), uint8_t val, void *priv)
{
it86x1f_t *dev = (it86x1f_t *) priv;
@@ -623,7 +623,7 @@ it86x1f_write_addr(uint16_t port, uint8_t val, void *priv)
}
static void
it86x1f_write_data(uint16_t port, uint8_t val, void *priv)
it86x1f_write_data(UNUSED(uint16_t port), uint8_t val, void *priv)
{
it86x1f_t *dev = (it86x1f_t *) priv;
@@ -659,7 +659,7 @@ it86x1f_write_data(uint16_t port, uint8_t val, void *priv)
}
static uint8_t
it86x1f_read_addr(uint16_t port, void *priv)
it86x1f_read_addr(UNUSED(uint16_t port), void *priv)
{
it86x1f_t *dev = (it86x1f_t *) priv;
uint8_t ret = dev->locked ? 0xff : dev->cur_reg;
@@ -670,7 +670,7 @@ it86x1f_read_addr(uint16_t port, void *priv)
}
static uint8_t
it86x1f_read_data(uint16_t port, void *priv)
it86x1f_read_data(UNUSED(uint16_t port), void *priv)
{
it86x1f_t *dev = (it86x1f_t *) priv;
uint8_t ret = 0xff;

View File

@@ -68,7 +68,7 @@ pc87306_gpio_write(uint16_t port, uint8_t val, void *priv)
}
uint8_t
pc87306_gpio_read(uint16_t port, void *priv)
pc87306_gpio_read(uint16_t port, UNUSED(void *priv))
{
uint32_t ret = machine_handle_gpio(0, 0xffffffff);

View File

@@ -24,6 +24,7 @@
#include <86box/keyboard.h>
#include <86box/nvr.h>
#include <86box/sio.h>
#include <86box/plat_unused.h>
typedef struct vl82c113_t {
uint8_t index;
@@ -128,7 +129,7 @@ vl82c113_close(void *priv)
}
static void *
vl82c113_init(const device_t *info)
vl82c113_init(UNUSED(const device_t *info))
{
vl82c113_t *dev = (vl82c113_t *) calloc(1, sizeof(vl82c113_t));