summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:28:54 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:28:54 +0100
commit620dd952f266c75d1c3520bbb52ccff55fe34422 (patch)
tree5228aef2e740823fac5cc5c28a65565d4e366ea4 /common
parent28c1d54937185bd983ccede4a587aa5dc9b2e5df (diff)
downloadtigervnc-620dd952f266c75d1c3520bbb52ccff55fe34422.tar.gz
tigervnc-620dd952f266c75d1c3520bbb52ccff55fe34422.zip
A switch() needs to handle every value in an enum
Diffstat (limited to 'common')
-rw-r--r--common/rfb/EncodeManager.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rfb/EncodeManager.cxx b/common/rfb/EncodeManager.cxx
index 4e133d31..954f29b1 100644
--- a/common/rfb/EncodeManager.cxx
+++ b/common/rfb/EncodeManager.cxx
@@ -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";