Fix macOS compile warnings
This commit is contained in:
parent
419c584523
commit
a7327156ff
|
@ -199,7 +199,6 @@ int uiMainStep(int wait)
|
||||||
// - https://github.com/gnustep/gui/blob/master/Source/NSApplication.m
|
// - https://github.com/gnustep/gui/blob/master/Source/NSApplication.m
|
||||||
int uiprivMainStep(uiprivNextEventArgs *nea, BOOL (^interceptEvent)(NSEvent *e))
|
int uiprivMainStep(uiprivNextEventArgs *nea, BOOL (^interceptEvent)(NSEvent *e))
|
||||||
{
|
{
|
||||||
NSDate *expire;
|
|
||||||
NSEvent *e;
|
NSEvent *e;
|
||||||
NSEventType type;
|
NSEventType type;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ void uiprivLoadUndocumented(void)
|
||||||
return;
|
return;
|
||||||
#define GET(var, fn) *((void **) (&var)) = dlsym(handle, #fn)
|
#define GET(var, fn) *((void **) (&var)) = dlsym(handle, #fn)
|
||||||
GET(str, kCTFontPreferredSubFamilyNameKey);
|
GET(str, kCTFontPreferredSubFamilyNameKey);
|
||||||
NSLog(@"get %p", str);
|
|
||||||
if (str != NULL)
|
if (str != NULL)
|
||||||
uiprivUNDOC_kCTFontPreferredSubFamilyNameKey = *str;
|
uiprivUNDOC_kCTFontPreferredSubFamilyNameKey = *str;
|
||||||
GET(str, kCTFontPreferredFamilyNameKey);
|
GET(str, kCTFontPreferredFamilyNameKey);
|
||||||
|
|
Loading…
Reference in New Issue