mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
app: fix more macOS 10.11 build warnings
Furthermore, add -Wno-deprecated-declarations; it is not worth it. Updated gio#41 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo CFLAGS: -DGL_SILENCE_DEPRECATION -Werror -fmodules -fobjc-arc -x objective-c
|
#cgo CFLAGS: -DGL_SILENCE_DEPRECATION -Werror -Wno-deprecated-declarations -fmodules -fobjc-arc -x objective-c
|
||||||
|
|
||||||
#include <AppKit/AppKit.h>
|
#include <AppKit/AppKit.h>
|
||||||
#include "os_macos.h"
|
#include "os_macos.h"
|
||||||
|
|||||||
+3
-3
@@ -104,10 +104,10 @@ void gio_main(CFTypeRef viewRef, const char *title, CGFloat width, CGFloat heigh
|
|||||||
[NSApp setMainMenu:menuBar];
|
[NSApp setMainMenu:menuBar];
|
||||||
|
|
||||||
NSRect rect = NSMakeRect(0, 0, width, height);
|
NSRect rect = NSMakeRect(0, 0, width, height);
|
||||||
NSWindowStyleMask styleMask = NSWindowStyleMaskTitled |
|
NSUInteger styleMask = NSTitledWindowMask |
|
||||||
NSWindowStyleMaskResizable |
|
NSWindowStyleMaskResizable |
|
||||||
NSWindowStyleMaskMiniaturizable |
|
NSMiniaturizableWindowMask |
|
||||||
NSWindowStyleMaskClosable;
|
NSClosableWindowMask;
|
||||||
NSWindow* window = [[NSWindow alloc] initWithContentRect:rect
|
NSWindow* window = [[NSWindow alloc] initWithContentRect:rect
|
||||||
styleMask:styleMask
|
styleMask:styleMask
|
||||||
backing:NSBackingStoreBuffered
|
backing:NSBackingStoreBuffered
|
||||||
|
|||||||
Reference in New Issue
Block a user