Skip to content

Commit

Permalink
Attempt to quiet unavoidable compiler warnings on Mac OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 14, 2011
1 parent bdf5254 commit 27e852b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -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.
Expand Down Expand Up @@ -116,6 +115,16 @@ static int QZ_SetColors (_THIS, int first_color,
#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
Expand Down

0 comments on commit 27e852b

Please sign in to comment.