Use [[fallthrough]]; to mark whished fallthroughs

- closes https://github.com/assimp/assimp/issues/4654
This commit is contained in:
Kim Kulling
2022-08-05 20:49:37 +02:00
committed by GitHub
parent 0422dff537
commit 5084a4d155

View File

@@ -262,7 +262,8 @@ void Discreet3DSImporter::ConvertMaterial(D3DS::Material &oldMat,
unsigned int iWire = 1;
mat.AddProperty<int>((int *)&iWire, 1, AI_MATKEY_ENABLE_WIREFRAME);
}
// fallthrough
[[fallthrough]];
case D3DS::Discreet3DS::Gouraud:
eShading = aiShadingMode_Gouraud;
break;