]> source.dussan.org Git - tigervnc.git/commitdiff
A switch() needs to handle every value in an enum
authorPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:28:54 +0000 (16:28 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:28:54 +0000 (16:28 +0100)
common/rfb/EncodeManager.cxx

index 4e133d31d4364d67e3d4a15e69ab6a07f0f69891..954f29b1b8b5b7516af888bbfd9205042d8b25ba 100644 (file)
@@ -91,6 +91,8 @@ static const char *encoderClassName(EncoderClass klass)
     return "Tight (JPEG)";
   case encoderZRLE:
     return "ZRLE";
+  case encoderClassMax:
+    break;
   }
 
   return "Unknown Encoder Class";
@@ -111,6 +113,8 @@ static const char *encoderTypeName(EncoderType type)
     return "Indexed RLE";
   case encoderFullColour:
     return "Full Colour";
+  case encoderTypeMax:
+    break;
   }
 
   return "Unknown Encoder Type";