From c190810fcff0714696a3ab8b48c09150a7f63a2b Mon Sep 17 00:00:00 2001 From: waltje Date: Wed, 25 Apr 2018 18:24:37 -0400 Subject: [PATCH] Synching VC14 and VC15, fixed some (more) warnings. --- src/nvr_at.c | 4 ++-- src/sound/snd_dbopl.cpp | 6 +++--- src/win/msvc/Makefile.VC | 4 ++-- src/win/msvc/vc14/VARCem.vcxproj | 9 +++++---- src/win/msvc/vc14/VARCem.vcxproj.filters | 21 ++++++++++++--------- src/win/win_d3d.cpp | 5 ++++- src/win/win_ddraw.cpp | 5 ++++- 7 files changed, 32 insertions(+), 22 deletions(-) diff --git a/src/nvr_at.c b/src/nvr_at.c index 75132e4..9716822 100644 --- a/src/nvr_at.c +++ b/src/nvr_at.c @@ -189,7 +189,7 @@ * including the later update (DS12887A) which implemented a * "century" register to be compatible with Y2K. * - * Version: @(#)nvr_at.c 1.0.5 2018/04/09 + * Version: @(#)nvr_at.c 1.0.6 2018/04/25 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -286,7 +286,7 @@ typedef struct { int8_t stat; uint8_t cent; - uint16_t addr; + uint8_t addr; int64_t ecount, rtctime; diff --git a/src/sound/snd_dbopl.cpp b/src/sound/snd_dbopl.cpp index a023cd6..c90b138 100644 --- a/src/sound/snd_dbopl.cpp +++ b/src/sound/snd_dbopl.cpp @@ -10,7 +10,7 @@ * * NOTE: See MSC_ macros for allocation on stack. --FvK * - * Version: @(#)snd_dbopl.cpp 1.0.5 2018/04/10 + * Version: @(#)snd_dbopl.cpp 1.0.6 2018/04/25 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -191,7 +191,7 @@ void opl2_update(int nr, int16_t *buffer, int samples) { #ifdef _MSC_VER static Bit32s *buffer_32 = NULL; - static Bit32s buffer_sz = 0; + static Bit32u buffer_sz = 0; #endif int c; #ifdef _MSC_VER @@ -221,7 +221,7 @@ void opl3_update(int nr, int16_t *buffer, int samples) { #ifdef _MSC_VER static Bit32s *buffer_32 = NULL; - static Bit32s buffer_sz = 0; + static Bit32u buffer_sz = 0; #endif int c; #ifdef _MSC_VER diff --git a/src/win/msvc/Makefile.VC b/src/win/msvc/Makefile.VC index d4c5ad3..c7b7987 100644 --- a/src/win/msvc/Makefile.VC +++ b/src/win/msvc/Makefile.VC @@ -8,7 +8,7 @@ # # Makefile for Windows using Visual Studio 2015. # -# Version: @(#)Makefile.VC 1.0.17 2018/04/25 +# Version: @(#)Makefile.VC 1.0.18 2018/04/25 # # Author: Fred N. van Kempen, # @@ -504,7 +504,7 @@ HDDOBJ := hdd.obj \ hdc.obj \ hdc_st506_xt.obj hdc_st506_at.obj \ hdc_esdi_at.obj hdc_esdi_mca.obj \ - hdc_ide_ata.obj hdc_ide_xta.o hdc_xtide.obj + hdc_ide_ata.obj hdc_ide_xta.obj hdc_xtide.obj CDROMOBJ := cdrom.obj \ cdrom_dosbox.obj cdrom_image.obj cdrom_null.obj diff --git a/src/win/msvc/vc14/VARCem.vcxproj b/src/win/msvc/vc14/VARCem.vcxproj index 4404be3..53545e0 100644 --- a/src/win/msvc/vc14/VARCem.vcxproj +++ b/src/win/msvc/vc14/VARCem.vcxproj @@ -48,9 +48,10 @@ - - - + + + + @@ -108,10 +109,10 @@ - + diff --git a/src/win/msvc/vc14/VARCem.vcxproj.filters b/src/win/msvc/vc14/VARCem.vcxproj.filters index f55f130..9953f09 100644 --- a/src/win/msvc/vc14/VARCem.vcxproj.filters +++ b/src/win/msvc/vc14/VARCem.vcxproj.filters @@ -116,13 +116,16 @@ disk - + disk - + disk - + + disk + + disk @@ -248,9 +251,6 @@ machine - - machine - machine @@ -260,6 +260,9 @@ machine + + machine + machine @@ -665,9 +668,6 @@ video - - video - video @@ -689,6 +689,9 @@ video + + video + video diff --git a/src/win/win_d3d.cpp b/src/win/win_d3d.cpp index fbc36e0..288401a 100644 --- a/src/win/win_d3d.cpp +++ b/src/win/win_d3d.cpp @@ -8,7 +8,7 @@ * * Rendering module for Microsoft Direct3D 9. * - * Version: @(#)win_d3d.cpp 1.0.7 2018/04/14 + * Version: @(#)win_d3d.cpp 1.0.8 2018/04/25 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -45,6 +45,9 @@ #include "../emu.h" #include "../version.h" #include "../device.h" +#ifdef _MSC_VER +# pragma warning(disable: 4200) +#endif #include "../video/video.h" #include "../plat.h" #include "win.h" diff --git a/src/win/win_ddraw.cpp b/src/win/win_ddraw.cpp index ebe53a1..91f5d49 100644 --- a/src/win/win_ddraw.cpp +++ b/src/win/win_ddraw.cpp @@ -11,7 +11,7 @@ * NOTES: This code should be re-merged into a single init() with a * 'fullscreen' argument, indicating FS mode is requested. * - * Version: @(#)win_ddraw.cpp 1.0.4 2018/04/14 + * Version: @(#)win_ddraw.cpp 1.0.5 2018/04/25 * * Authors: Fred N. van Kempen, * Miran Grca, @@ -50,6 +50,9 @@ #endif #include "../emu.h" #include "../device.h" +#ifdef _MSC_VER +# pragma warning(disable: 4200) +#endif #include "../video/video.h" #include "../plat.h" #include "../ui.h"