add comments to suppres -Wimplicit-fallthrough warnings

This commit is contained in:
Stefan Seyfried
2017-09-23 18:11:47 +02:00
committed by Jacek Jendrzej
parent 9e2a7d7f79
commit 971f3703a6
12 changed files with 19 additions and 2 deletions

View File

@@ -274,6 +274,7 @@ bool CScreenShot::SaveFile()
break;
default:
printf("CScreenShot::SaveFile unsupported format %d, using jpeg\n", format);
/* fall through */
case FORMAT_JPG:
ret = SaveJpg();
break;
@@ -517,6 +518,7 @@ void CScreenShot::MakeFileName(const t_channel_id channel_id)
break;
default:
printf("CScreenShot::MakeFileName unsupported format %d, using jpeg\n", format);
/* fall through */
case FORMAT_JPG:
strcat(fname, ".jpg");
break;