소스 검색

Use [[fallthrough]]; to mark whished fallthroughs

- closes https://github.com/assimp/assimp/issues/4654
Kim Kulling 3 년 전
부모
커밋
5084a4d155
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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;