mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Squashed compiler warnings by adding casts, making sure prototypes are in
scope and looking at types.
This commit is contained in:
parent
446f32367b
commit
0a116f3a29
4 changed files with 7 additions and 3 deletions
|
@ -53,7 +53,7 @@ char *PyMac_getscript()
|
|||
/* This leaks a an object. */
|
||||
name = CFStringConvertEncodingToIANACharSetName(enc);
|
||||
}
|
||||
return CFStringGetCStringPtr(name, 0);
|
||||
return (char *)CFStringGetCStringPtr(name, 0);
|
||||
#else
|
||||
int font, script, lang;
|
||||
font = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue