]> source.dussan.org Git - tigervnc.git/commitdiff
Compiler doesn't like referencing unset variables
authorPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:47:01 +0000 (16:47 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:47:01 +0000 (16:47 +0100)
win/rfb_win32/DeviceContext.cxx

index ad5e6b1cf4908ce58f4a9a8e15b9db9a54e00b80..da19de83a6d6ab65f5ebcbe01ce28221cfd2de50 100644 (file)
@@ -127,6 +127,10 @@ PixelFormat DeviceContext::getPF(HDC dc) {
     if (bpp < 8)
       bpp = 8;
     vlog.info("%d-colour palettised", 1<<depth);
+    // Aren't really used, but set them to keep the compiler happy
+    redMax = redShift = 0;
+    greenMax = greenShift = 0;
+    blueMax = blueShift = 0;
   }