From da5a83d2b253b57f172851c8b4e0cb3151eea1ea Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 8 Oct 2019 16:50:52 +0200 Subject: [PATCH] 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 --- app/os_macos.go | 2 +- app/os_macos.m | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/os_macos.go b/app/os_macos.go index 1789b5c0..b86fab76 100644 --- a/app/os_macos.go +++ b/app/os_macos.go @@ -5,7 +5,7 @@ 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 #include "os_macos.h" diff --git a/app/os_macos.m b/app/os_macos.m index f8751d23..9308c501 100644 --- a/app/os_macos.m +++ b/app/os_macos.m @@ -104,10 +104,10 @@ void gio_main(CFTypeRef viewRef, const char *title, CGFloat width, CGFloat heigh [NSApp setMainMenu:menuBar]; NSRect rect = NSMakeRect(0, 0, width, height); - NSWindowStyleMask styleMask = NSWindowStyleMaskTitled | + NSUInteger styleMask = NSTitledWindowMask | NSWindowStyleMaskResizable | - NSWindowStyleMaskMiniaturizable | - NSWindowStyleMaskClosable; + NSMiniaturizableWindowMask | + NSClosableWindowMask; NSWindow* window = [[NSWindow alloc] initWithContentRect:rect styleMask:styleMask backing:NSBackingStoreBuffered