From 6c3b1059b0ff7cec915491399ca5c1077aaaf339 Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 4 Aug 2009 17:50:02 +0000 Subject: [PATCH] Move variable initialization in constructors to shut up gcc warnings about their ordering. --- desmume/src/NDSSystem.h | 2 +- desmume/src/gfx3d.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/desmume/src/NDSSystem.h b/desmume/src/NDSSystem.h index 123941353..8b4270ea9 100644 --- a/desmume/src/NDSSystem.h +++ b/desmume/src/NDSSystem.h @@ -397,12 +397,12 @@ extern struct TCommonSettings { , UseExtFirmware(false) , BootFromFirmware(false) , DebugConsole(false) + , single_core(true) , wifiBridgeAdapterNum(0) , spuInterpolationMode(SPUInterpolation_Linear) , spuAdpcmCache(false) , gfx3d_flushMode(0) , manualBackupType(0) - , single_core(true) { strcpy(ARM9BIOS, "biosnds9.bin"); strcpy(ARM7BIOS, "biosnds7.bin"); diff --git a/desmume/src/gfx3d.h b/desmume/src/gfx3d.h index 30f116eac..c39d5ebde 100644 --- a/desmume/src/gfx3d.h +++ b/desmume/src/gfx3d.h @@ -212,10 +212,10 @@ struct GFX3D , alphaTestRef(0) , clearDepth(1) , clearColor(0) + , fogColor(0) + , fogOffset(0) , frameCtr(0) , frameCtrRaw(0) - , fogOffset(0) - , fogColor(0) { } BOOL enableTexturing, enableAlphaTest, enableAlphaBlending,