From 664e0da8dff1d04860cc46ce8139cbd47e15c552 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 4 Nov 2017 15:37:40 -0400 Subject: fix all unreachable code warnings --- source/slang/parameter-binding.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/parameter-binding.cpp') diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp index fed838e6b..18294bb3e 100644 --- a/source/slang/parameter-binding.cpp +++ b/source/slang/parameter-binding.cpp @@ -567,7 +567,7 @@ getTypeLayoutForGlobalShaderParameter( default: SLANG_UNEXPECTED("unhandled source language"); - return nullptr; + UNREACHABLE_RETURN(nullptr); } } @@ -1314,7 +1314,7 @@ static RefPtr processEntryPointParameter( } SLANG_UNEXPECTED("unhandled type kind"); - return nullptr; + UNREACHABLE_RETURN(nullptr); } static void collectEntryPointParameters( -- cgit v1.2.3