Browse Source

Use [[fallthrough]]; to mark whished fallthroughs

- closes https://github.com/assimp/assimp/issues/4654
Kim Kulling 3 năm trước cách đây
mục cha
commit
5084a4d155
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;