From: Pierre Ossman Date: Tue, 3 Mar 2015 15:28:54 +0000 (+0100) Subject: A switch() needs to handle every value in an enum X-Git-Tag: v1.4.90~33^2~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=620dd952f266c75d1c3520bbb52ccff55fe34422;p=tigervnc.git A switch() needs to handle every value in an enum --- 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";