Forráskód Böngészése

Use [[fallthrough]]; to mark whished fallthroughs

- closes https://github.com/assimp/assimp/issues/4654
Kim Kulling 3 éve
szülő
commit
5084a4d155
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      code/AssetLib/3DS/3DSConverter.cpp

+ 2 - 1
code/AssetLib/3DS/3DSConverter.cpp

@@ -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;