From 237c2026e98682d3dfb2c186fc4e0e8dc47721e3 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Mon, 26 Nov 2018 23:21:57 -0300 Subject: morton: Fixup compiler warning --- src/video_core/morton.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/video_core') diff --git a/src/video_core/morton.cpp b/src/video_core/morton.cpp index f14abba7d..8c3b97463 100644 --- a/src/video_core/morton.cpp +++ b/src/video_core/morton.cpp @@ -183,13 +183,14 @@ static constexpr ConversionArray linear_to_morton_fns = { // clang-format on }; -constexpr MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) { +static MortonCopyFn GetSwizzleFunction(MortonSwizzleMode mode, Surface::PixelFormat format) { switch (mode) { case MortonSwizzleMode::MortonToLinear: return morton_to_linear_fns[static_cast(format)]; case MortonSwizzleMode::LinearToMorton: return linear_to_morton_fns[static_cast(format)]; } + UNREACHABLE(); } /// 8x8 Z-Order coordinate from 2D coordinates -- cgit v1.2.3