From 5084a4d155de28ae39c310f77889f13119e545b4 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 5 Aug 2022 20:49:37 +0200 Subject: [PATCH] Use [[fallthrough]]; to mark whished fallthroughs - closes https://github.com/assimp/assimp/issues/4654 --- code/AssetLib/3DS/3DSConverter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/AssetLib/3DS/3DSConverter.cpp b/code/AssetLib/3DS/3DSConverter.cpp index 2421d5460..b4f625b76 100644 --- a/code/AssetLib/3DS/3DSConverter.cpp +++ b/code/AssetLib/3DS/3DSConverter.cpp @@ -262,7 +262,8 @@ void Discreet3DSImporter::ConvertMaterial(D3DS::Material &oldMat, unsigned int iWire = 1; mat.AddProperty((int *)&iWire, 1, AI_MATKEY_ENABLE_WIREFRAME); } -// fallthrough + [[fallthrough]]; + case D3DS::Discreet3DS::Gouraud: eShading = aiShadingMode_Gouraud; break;