mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 21:54:15 +00:00
AGS: gcc warning fix
This commit is contained in:
parent
0cf9a86286
commit
9c909afd10
@ -212,7 +212,7 @@ int StrContains(const char *s1, const char *s2) {
|
||||
ustrlwr(tempbuf1);
|
||||
ustrlwr(tempbuf2);
|
||||
|
||||
char *offs = ustrstr(tempbuf1, tempbuf2);
|
||||
char *offs = const_cast<char *>(ustrstr(tempbuf1, tempbuf2));
|
||||
|
||||
if (offs == nullptr) {
|
||||
free(tempbuf1);
|
||||
|
@ -1169,7 +1169,7 @@ char *ustrupr(char *s) {
|
||||
return s;
|
||||
}
|
||||
|
||||
char *ustrstr(const char *s1, const char *s2) {
|
||||
const char *ustrstr(const char *s1, const char *s2) {
|
||||
int len;
|
||||
assert(s1);
|
||||
assert(s2);
|
||||
|
@ -112,7 +112,7 @@ extern char *ustrupr(char *s);
|
||||
/* ustrstr:
|
||||
* Unicode-aware version of the ANSI strstr() function.
|
||||
*/
|
||||
extern char *ustrstr(const char *s1, const char *s2);
|
||||
extern const char *ustrstr(const char *s1, const char *s2);
|
||||
/* usetat:
|
||||
* Modifies the character at the specified index within the string,
|
||||
* handling adjustments for variable width data. Returns how far the
|
||||
|
Loading…
x
Reference in New Issue
Block a user