Kaynağa Gözat

Use [[fallthrough]]; to mark whished fallthroughs

- closes https://github.com/assimp/assimp/issues/4654
Kim Kulling 3 yıl önce
ebeveyn
işleme
5084a4d155
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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;
         unsigned int iWire = 1;
         mat.AddProperty<int>((int *)&iWire, 1, AI_MATKEY_ENABLE_WIREFRAME);
         mat.AddProperty<int>((int *)&iWire, 1, AI_MATKEY_ENABLE_WIREFRAME);
     }
     }
-// fallthrough
+    [[fallthrough]];
+
     case D3DS::Discreet3DS::Gouraud:
     case D3DS::Discreet3DS::Gouraud:
         eShading = aiShadingMode_Gouraud;
         eShading = aiShadingMode_Gouraud;
         break;
         break;