mirror of
https://github.com/encounter/SDL.git
synced 2025-12-16 16:37:09 +00:00
os2: several warning fixes.
mostly those "W007: '&array' may not produce intended result" warnings from Watcom, visible only in C++ mode. one or two others here & there.
This commit is contained in:
@@ -49,7 +49,7 @@ static int _createUconvObj(const char *code, UconvObject *uobj)
|
||||
}
|
||||
}
|
||||
|
||||
return UniCreateUconvObject( &uc_code, uobj );
|
||||
return UniCreateUconvObject( uc_code, uobj );
|
||||
}
|
||||
|
||||
static int uconv_open(const char *code, UconvObject *uobj)
|
||||
@@ -68,8 +68,8 @@ static int uconv_open(const char *code, UconvObject *uobj)
|
||||
unsigned long cp = os2cpFromName( (char *)code );
|
||||
char cp_name[16];
|
||||
|
||||
if ( cp != 0 && _snprintf( &cp_name, sizeof(cp_name), "IBM-%u", cp ) > 0 )
|
||||
rc = _createUconvObj( &cp_name, uobj );
|
||||
if ( cp != 0 && _snprintf( cp_name, sizeof(cp_name), "IBM-%u", cp ) > 0 )
|
||||
rc = _createUconvObj( cp_name, uobj );
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user