Skip to content

Commit c24468c

Browse files
committed
Fix "fallthrough annotation in unreachable code" in release d3d builds
The same issue I ran into in https://crrev.com/c/6231111 but on d3d Bug: angleproject:394129077 Change-Id: I90faa01fa66c514162a1d5e4cbe56a2bfd85085e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/6237859 Reviewed-by: Cody Northrop <[email protected]> Commit-Queue: Cody Northrop <[email protected]> Auto-Submit: Roman Lavrov <[email protected]>
1 parent 7263989 commit c24468c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libANGLE/renderer/d3d/d3d11/ResourceManager11.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ DXGI_FORMAT GetTypedColorFormatForClearing(DXGI_FORMAT dxgiFormat)
314314
case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
315315
case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
316316
UNREACHABLE();
317-
[[fallthrough]];
317+
return dxgiFormat;
318318
default:
319319
return dxgiFormat;
320320
}

0 commit comments

Comments
 (0)