From 620dd952f266c75d1c3520bbb52ccff55fe34422 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Mar 2015 16:28:54 +0100 Subject: [PATCH] A switch() needs to handle every value in an enum --- common/rfb/EncodeManager.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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"; -- 2.39.5