Commit 7c4077f0 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix warning: implicit-fallthrough

parent 3e69e287
......@@ -223,7 +223,7 @@ KisImageBuilder_Result CSVLoader::decode(QIODevice *io, const QString &filename)
readLine.rewind();
field = readLine.nextField();
step = 4;
//no break!
/* Falls through */
case 4 : //level header
......@@ -266,7 +266,7 @@ KisImageBuilder_Result CSVLoader::decode(QIODevice *io, const QString &filename)
step = 5;
//no break!
/* Falls through */
case 5 : //frames
......
......@@ -82,25 +82,23 @@ struct TgaHeaderInfo {
switch (tga.image_type) {
case TGA_TYPE_RLE_INDEXED:
rle = true;
// no break is intended!
/* Falls through */
case TGA_TYPE_INDEXED:
pal = true;
break;
case TGA_TYPE_RLE_RGB:
rle = true;
// no break is intended!
/* Falls through */
case TGA_TYPE_RGB:
rgb = true;
break;
case TGA_TYPE_RLE_GREY:
rle = true;
// no break is intended!
/* Falls through */
case TGA_TYPE_GREY:
grey = true;
break;
default:
// Error, unknown image type.
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment