mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
MACT: Fix warning: passing arguments 2 through 5 of 'SCRIPT_PutDoubleString' discards 'const' qualifier from pointer target type [enabled by default]
git-svn-id: https://svn.eduke32.com/eduke32@5221 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
dd576b7319
commit
809b1e6f65
2 changed files with 13 additions and 12 deletions
|
@ -680,7 +680,7 @@ int32_t SCRIPT_GetString(int32_t scripthandle, char * sectionname, char * entryn
|
|||
return SCRIPT_GetStringPtr(scripthandle, sectionname, entryname, &dest);
|
||||
}
|
||||
|
||||
int32_t SCRIPT_GetDoubleString(int32_t scripthandle, char * sectionname, char * entryname, char * dest1, char * dest2)
|
||||
int32_t SCRIPT_GetDoubleString(int32_t scripthandle, const char * sectionname, const char * entryname, char * dest1, char * dest2)
|
||||
{
|
||||
ScriptSectionType *s;
|
||||
ScriptEntryType *e;
|
||||
|
@ -820,13 +820,14 @@ void SCRIPT_PutString
|
|||
void SCRIPT_PutDoubleString
|
||||
(
|
||||
int32_t scripthandle,
|
||||
char * sectionname,
|
||||
char * entryname,
|
||||
char * string1,
|
||||
char * string2
|
||||
const char * sectionname,
|
||||
const char * entryname,
|
||||
const char * string1,
|
||||
const char * string2
|
||||
)
|
||||
{
|
||||
char *raw,*q,*p;
|
||||
const char *q;
|
||||
char *raw,*p;
|
||||
int32_t len = 6;
|
||||
if (!string1) string1 = "";
|
||||
if (!string2) string2 = "";
|
||||
|
|
|
@ -153,8 +153,8 @@ int32_t SCRIPT_GetString
|
|||
int32_t SCRIPT_GetDoubleString
|
||||
(
|
||||
int32_t scripthandle,
|
||||
char * sectionname,
|
||||
char * entryname,
|
||||
const char * sectionname,
|
||||
const char * entryname,
|
||||
char * dest1,
|
||||
char * dest2
|
||||
);
|
||||
|
@ -238,10 +238,10 @@ void SCRIPT_PutString
|
|||
void SCRIPT_PutDoubleString
|
||||
(
|
||||
int32_t scripthandle,
|
||||
char * sectionname,
|
||||
char * entryname,
|
||||
char * string1,
|
||||
char * string2
|
||||
const char * sectionname,
|
||||
const char * entryname,
|
||||
const char * string1,
|
||||
const char * string2
|
||||
);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue