Skip to content

Commit

Permalink
GRAPHICS: Silence unused parameter/function warnings on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Aug 26, 2020
1 parent 6eddf7c commit 090240a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/graphics/icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

namespace Graphics {

#if !defined(MACOSX)
/** Static version of the xoreos icon. */
static const byte kStaticIcon[32 * 32 * 4] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
Expand Down Expand Up @@ -326,6 +327,7 @@ static void setStaticIcon(SDL_Window &window) {

SDL_FreeSurface(icon);
}
#endif // MACOSX

#if defined(WIN32)
static bool setWindowsIcon(SDL_Window &window) {
Expand Down Expand Up @@ -356,6 +358,7 @@ void setWindowIcon(SDL_Window &window) {
setStaticIcon(window);

#elif defined(MACOSX)
(void)window;
// Do nothing on Mac OS X. The external icon is pulled in by default already.

#else
Expand Down

0 comments on commit 090240a

Please sign in to comment.