mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-19 16:00:52 +00:00
Fix Wwrite-strings warnings in sys/win32
deprecated conversion from string constant to ‘char*’
This commit is contained in:
parent
3e25cc751a
commit
b2ccf9240c
2 changed files with 4 additions and 4 deletions
|
@ -625,7 +625,7 @@ int Sys_GetCPUId( void ) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct bitFlag_s {
|
typedef struct bitFlag_s {
|
||||||
char * name;
|
const char *name;
|
||||||
int bit;
|
int bit;
|
||||||
} bitFlag_t;
|
} bitFlag_t;
|
||||||
|
|
||||||
|
@ -641,13 +641,13 @@ static bitFlag_t controlWordFlags[] = {
|
||||||
{ "Infinity control", 12 },
|
{ "Infinity control", 12 },
|
||||||
{ "", 0 }
|
{ "", 0 }
|
||||||
};
|
};
|
||||||
static char *precisionControlField[] = {
|
static const char *precisionControlField[] = {
|
||||||
"Single Precision (24-bits)",
|
"Single Precision (24-bits)",
|
||||||
"Reserved",
|
"Reserved",
|
||||||
"Double Precision (53-bits)",
|
"Double Precision (53-bits)",
|
||||||
"Double Extended Precision (64-bits)"
|
"Double Extended Precision (64-bits)"
|
||||||
};
|
};
|
||||||
static char *roundingControlField[] = {
|
static const char *roundingControlField[] = {
|
||||||
"Round to nearest",
|
"Round to nearest",
|
||||||
"Round down",
|
"Round down",
|
||||||
"Round up",
|
"Round up",
|
||||||
|
|
|
@ -72,7 +72,7 @@ net_interface netint[MAX_INTERFACES];
|
||||||
NET_ErrorString
|
NET_ErrorString
|
||||||
====================
|
====================
|
||||||
*/
|
*/
|
||||||
char *NET_ErrorString( void ) {
|
const char *NET_ErrorString( void ) {
|
||||||
int code;
|
int code;
|
||||||
|
|
||||||
code = WSAGetLastError();
|
code = WSAGetLastError();
|
||||||
|
|
Loading…
Reference in a new issue