Commit 48f5df83 authored by Daniel Holbert's avatar Daniel Holbert
Browse files

Bug 603724: gtk2/nsWindow.cpp: add ifdef's around static function "UseShm()"...

Bug 603724: gtk2/nsWindow.cpp: add ifdef's around static function "UseShm()" that's only called from within ifdefs, to fix build warning. r=cjones a=roc
parent 0bbdcc76
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -286,6 +286,7 @@ UpdateLastInputEventTime()
  }
}

#ifdef MOZ_HAVE_SHMIMAGE
// If XShm isn't available to our client, we'll try XShm once, fail,
// set this to false and then never try again.
static PRBool gShmAvailable = PR_TRUE;
@@ -293,6 +294,7 @@ static PRBool UseShm()
{
    return gfxPlatformGtk::UseClientSideRendering() && gShmAvailable;
}
#endif

// this is the last window that had a drag event happen on it.
nsWindow *nsWindow::mLastDragMotionWindow = NULL;