From a922a452acf09b7ed2abc158696dc85cfa231c37 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 14 Sep 2011 03:12:48 -0400 Subject: [PATCH] Attempt to quiet unavoidable compiler warnings on Mac OS X. --HG-- branch : SDL-1.2 --- src/video/quartz/SDL_QuartzVideo.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/video/quartz/SDL_QuartzVideo.m b/src/video/quartz/SDL_QuartzVideo.m index b27c4fef0..a29bef96f 100644 --- a/src/video/quartz/SDL_QuartzVideo.m +++ b/src/video/quartz/SDL_QuartzVideo.m @@ -24,7 +24,6 @@ #include "SDL_QuartzVideo.h" #include "SDL_QuartzWindow.h" - #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1060 /* Fixed in Snow Leopard */ /* Add methods to get at private members of NSScreen. @@ -116,6 +115,16 @@ VideoBootStrap QZ_bootstrap = { #define MAC_OS_X_VERSION_MIN_REQUIRED 1050 #endif +/* Disable compiler warnings we can't avoid. */ +#if (defined(__GNUC__) && (__GNUC__ >= 4)) +# if (MAC_OS_X_VERSION_MIN_REQUIRED < 1060) + /* use ==, not >=, so we see future warnings. */ +# if (MAC_OS_X_VERSION_MAX_ALLOWED == 1070) +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +# endif +# endif +#endif + static inline BOOL IS_LION_OR_LATER(_THIS) { #if FORCE_OLD_API