From dee308f4b5b05294af7ff597986fb7f005237843 Mon Sep 17 00:00:00 2001 From: starfrost013 Date: Wed, 1 Jan 2025 02:32:34 +0000 Subject: [PATCH] fix compiler warning --- src/include/86box/nv/classes/vid_nv3_classes.h | 9 +++++++++ src/include/86box/nv/vid_nv3.h | 6 +++--- src/video/nv/nv3/nv3_core.c | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/include/86box/nv/classes/vid_nv3_classes.h b/src/include/86box/nv/classes/vid_nv3_classes.h index e47b5eb71..b5d4ff44a 100644 --- a/src/include/86box/nv/classes/vid_nv3_classes.h +++ b/src/include/86box/nv/classes/vid_nv3_classes.h @@ -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) diff --git a/src/include/86box/nv/vid_nv3.h b/src/include/86box/nv/vid_nv3.h index a404df979..3e69b57fd 100644 --- a/src/include/86box/nv/vid_nv3.h +++ b/src/include/86box/nv/vid_nv3.h @@ -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[]; diff --git a/src/video/nv/nv3/nv3_core.c b/src/video/nv/nv3/nv3_core.c index cd1614e8e..e69244209 100644 --- a/src/video/nv/nv3/nv3_core.c +++ b/src/video/nv/nv3/nv3_core.c @@ -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