mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-19 07:51:54 +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 {
|
||||
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",
|
||||
|
|
|
@ -72,7 +72,7 @@ net_interface netint[MAX_INTERFACES];
|
|||
NET_ErrorString
|
||||
====================
|
||||
*/
|
||||
char *NET_ErrorString( void ) {
|
||||
const char *NET_ErrorString( void ) {
|
||||
int code;
|
||||
|
||||
code = WSAGetLastError();
|
||||
|
|
Loading…
Reference in a new issue