Massage code to avoid warnings

Change-Id: I847e1a109bd20e64161a7735ee30b2fe1ca507b0
This commit is contained in:
Stephan Bergmann
2016-05-12 11:33:18 +02:00
parent 89f22051f2
commit 3eaf7ae663

View File

@@ -378,14 +378,11 @@ namespace drawinglayer
aRetval = Primitive2DContainer { aPrimitiveBlackAndWhite };
break;
}
// coverity[dead_error_begin] - intentional dead case
case GRAPHICDRAWMODE_WATERMARK:
{
assert(false && "OOps, GRAPHICDRAWMODE_WATERMARK should already be handled (see above)");
// fallthrough intended
}
default: // case GRAPHICDRAWMODE_STANDARD:
{
assert(
aGraphicDrawMode != GRAPHICDRAWMODE_WATERMARK
&& "OOps, GRAPHICDRAWMODE_WATERMARK should already be handled (see above)");
// nothing to do
break;
}