From 230039a5c313b3bec8e741426aa9be4d790b9769 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 29 May 2011 16:23:08 +0200 Subject: [PATCH] Changed: #825 Remove all warnings when compiling Ryzom --- code/nel/src/misc/debug.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/code/nel/src/misc/debug.cpp b/code/nel/src/misc/debug.cpp index 505f88a7d..17cf2fd3b 100644 --- a/code/nel/src/misc/debug.cpp +++ b/code/nel/src/misc/debug.cpp @@ -1681,15 +1681,17 @@ NLMISC_CATEGORISED_COMMAND(nel, writeaccess, "write a uint8 value in an invalid uint8 val = 123; uint8 *adr = (uint8*)0; if(args.size() >= 1) + { #ifdef HAVE_X86_64 - uint64 addr64; - NLMISC::fromString(args[0], addr64); - adr = (uint8*)addr64; + uint64 addr64; + NLMISC::fromString(args[0], addr64); + adr = (uint8*)addr64; #else - uint32 addr32; - NLMISC::fromString(args[0], addr32); - adr = (uint8*)addr32; + uint32 addr32; + NLMISC::fromString(args[0], addr32); + adr = (uint8*)addr32; #endif + } if(args.size() >= 2) NLMISC::fromString(args[1], val); *adr = val; return true;