Commit 5d78428f authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

winemac.drv: Disable declaration-after-statement warnings in ObjC files.

parent 229ccfd0
......@@ -25,6 +25,8 @@
#import "cocoa_event.h"
#import "cocoa_window.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
static NSString* const WineAppWaitQueryResponseMode = @"WineAppWaitQueryResponseMode";
......
......@@ -23,6 +23,8 @@
#import "cocoa_event.h"
#import "cocoa_window.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
#if !defined(MAC_OS_X_VERSION_10_14) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_14
/* For older SDKs, #define the new names of constants deprecated/renamed in macOS 10.14. */
#define NSBitmapImageFileTypeBMP NSBMPFileType
......
......@@ -23,6 +23,8 @@
#import "cocoa_cursorclipping.h"
#import "cocoa_window.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
/* Neither Quartz nor Cocoa has an exact analog for Win32 cursor clipping.
*
......
......@@ -26,6 +26,8 @@
#endif
#include "macdrv_cocoa.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
static uint64_t dedicated_gpu_id;
static uint64_t integrated_gpu_id;
......
......@@ -29,6 +29,8 @@
#import "cocoa_app.h"
#import "cocoa_window.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
static NSString* const WineEventQueueThreadDictionaryKey = @"WineEventQueueThreadDictionaryKey";
......
......@@ -25,6 +25,8 @@
#include "macdrv_cocoa.h"
#import "cocoa_app.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
/* Condition values for an NSConditionLock. Used to signal between run_cocoa_app
and macdrv_start_cocoa_app so the latter knows when the former is running
......
......@@ -26,6 +26,8 @@
#include "cocoa_app.h"
#include "cocoa_event.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
@interface WineOpenGLContext ()
@property (retain, nonatomic) NSView* latentView;
......
......@@ -23,6 +23,8 @@
#import "cocoa_app.h"
#import "cocoa_event.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
@interface WineStatusItem : NSView
{
......
......@@ -33,6 +33,7 @@
#import "cocoa_event.h"
#import "cocoa_opengl.h"
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
#if !defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
/* Additional Mac virtual keycode, to complement those in Carbon's <HIToolbox/Events.h>. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment