Merge pull request #3144 from lemondrops/more-warning-fixes
More warning fixes
This commit is contained in:
@@ -743,17 +743,17 @@ static const device_config_t pcjr_config[] = {
|
||||
};
|
||||
|
||||
const device_t pcjr_device = {
|
||||
"IBM PCjr",
|
||||
"pcjr",
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
{ NULL },
|
||||
speed_changed,
|
||||
NULL,
|
||||
pcjr_config
|
||||
.name = "IBM PCjr",
|
||||
.internal_name = "pcjr",
|
||||
.flags = 0,
|
||||
.local = 0,
|
||||
.init = NULL,
|
||||
.close = NULL,
|
||||
.reset = NULL,
|
||||
{ .available = NULL },
|
||||
.speed_changed = speed_changed,
|
||||
.force_redraw = NULL,
|
||||
.config = pcjr_config
|
||||
};
|
||||
|
||||
int
|
||||
|
@@ -90,14 +90,6 @@ setCDROMSpeed(QAbstractItemModel *model, const QModelIndex &idx, uint8_t speed)
|
||||
model->setData(i, speed, Qt::UserRole);
|
||||
}
|
||||
|
||||
static void
|
||||
setCDROMEarly(QAbstractItemModel *model, const QModelIndex &idx, bool early)
|
||||
{
|
||||
auto i = idx.siblingAtColumn(2);
|
||||
model->setData(i, (early == true) ? QObject::tr("On") : QObject::tr("Off"));
|
||||
model->setData(i, early, Qt::UserRole);
|
||||
}
|
||||
|
||||
static void
|
||||
setCDROMType(QAbstractItemModel *model, const QModelIndex &idx, int type)
|
||||
{
|
||||
|
@@ -338,9 +338,9 @@ const device_t fdc37c669_370_device = {
|
||||
.internal_name = "fdc37c669_370",
|
||||
.flags = 0,
|
||||
.local = 1,
|
||||
fdc37c669_init,
|
||||
fdc37c669_close,
|
||||
.reset = NULL,
|
||||
.init = fdc37c669_init,
|
||||
.close = fdc37c669_close,
|
||||
.reset = NULL,
|
||||
{ .available = NULL },
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
|
@@ -793,17 +793,17 @@ access_bus_init(const device_t *info)
|
||||
}
|
||||
|
||||
static const device_t access_bus_device = {
|
||||
"SMC FDC37C932FR ACCESS.bus",
|
||||
"access_bus",
|
||||
0,
|
||||
0x03,
|
||||
access_bus_init,
|
||||
access_bus_close,
|
||||
NULL,
|
||||
{ NULL },
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
.name = "SMC FDC37C932FR ACCESS.bus",
|
||||
.internal_name = "access_bus",
|
||||
.flags = 0,
|
||||
.local = 0x03,
|
||||
.init = access_bus_init,
|
||||
.close = access_bus_close,
|
||||
.reset = NULL,
|
||||
{ .available = NULL },
|
||||
.speed_changed = NULL,
|
||||
.force_redraw = NULL,
|
||||
.config = NULL
|
||||
};
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user