fix compiler warning

This commit is contained in:
starfrost013
2025-01-01 02:32:34 +00:00
parent 0681482a93
commit dee308f4b5
3 changed files with 13 additions and 4 deletions

View File

@@ -39,6 +39,15 @@
extern const char* nv3_class_names[];
/* Object Class 0x01 (real hardware)
Beta factor
*/
typedef struct nv_object_class_001
{
uint8_t reserved[0xFF]; // Required for NV_CLASS Core Functionality
// Put the rest of it here
} nv3_beta_factor_t;
/*
Object Class 0x07 (real hardware)
0x1E (drivers)

View File

@@ -6,7 +6,8 @@
*
* This file is part of the 86Box distribution.
*
* JENSEN HUANG APPROVED !!!!
* vid_nv3.h: NV3 Architecture Hardware Reference (open-source)
* Last updated 1 January 2025 (STILL WORKING ON IT)
*
*
*
@@ -15,8 +16,7 @@
* Copyright 2024-2025 Connor Hyde
*/
// vid_nv3.h: NV3 Architecture Hardware Reference (open-source)
// Last updated 30 December 2024
// The GPU base structure
extern const device_config_t nv3_config[];

View File

@@ -679,7 +679,7 @@ void nv3_svga_out(uint16_t addr, uint8_t val, void* priv)
val = (nv3->nvbase.svga.crtc[NV3_CRTC_REGISTER_OVERFLOW] & ~0x10) | (val & 0x10);
// set the register value...
uint8_t old_value = nv3->nvbase.svga.crtc[crtcreg];
old_value = nv3->nvbase.svga.crtc[crtcreg];
nv3->nvbase.svga.crtc[crtcreg] = val;
// ...now act on it