From b2ccf9240cd8c2f41fbd0d252387f1ed7c66f49b Mon Sep 17 00:00:00 2001 From: dhewg Date: Wed, 14 Dec 2011 03:22:03 +0100 Subject: [PATCH] Fix Wwrite-strings warnings in sys/win32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deprecated conversion from string constant to ‘char*’ --- neo/sys/win32/win_cpu.cpp | 6 +++--- neo/sys/win32/win_net.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/neo/sys/win32/win_cpu.cpp b/neo/sys/win32/win_cpu.cpp index 08fb57af..e3dc40e0 100644 --- a/neo/sys/win32/win_cpu.cpp +++ b/neo/sys/win32/win_cpu.cpp @@ -625,7 +625,7 @@ int Sys_GetCPUId( void ) { */ typedef struct bitFlag_s { - char * name; + const char *name; int bit; } bitFlag_t; @@ -641,13 +641,13 @@ static bitFlag_t controlWordFlags[] = { { "Infinity control", 12 }, { "", 0 } }; -static char *precisionControlField[] = { +static const char *precisionControlField[] = { "Single Precision (24-bits)", "Reserved", "Double Precision (53-bits)", "Double Extended Precision (64-bits)" }; -static char *roundingControlField[] = { +static const char *roundingControlField[] = { "Round to nearest", "Round down", "Round up", diff --git a/neo/sys/win32/win_net.cpp b/neo/sys/win32/win_net.cpp index ed557497..0b5ccf02 100644 --- a/neo/sys/win32/win_net.cpp +++ b/neo/sys/win32/win_net.cpp @@ -72,7 +72,7 @@ net_interface netint[MAX_INTERFACES]; NET_ErrorString ==================== */ -char *NET_ErrorString( void ) { +const char *NET_ErrorString( void ) { int code; code = WSAGetLastError();