From a321ff303743a635279569c032e1dfb797b34c2e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 25 Jan 2019 20:21:24 -0500 Subject: [PATCH] Adds some default values. --- Outputs/ScanTarget.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Outputs/ScanTarget.hpp b/Outputs/ScanTarget.hpp index e2ea8edc4..b7f24a9fa 100644 --- a/Outputs/ScanTarget.hpp +++ b/Outputs/ScanTarget.hpp @@ -99,11 +99,15 @@ inline size_t size_for_data_type(InputDataType data_type) { case InputDataType::Red8Green8Blue8: case InputDataType::PhaseLinkedLuminance8: return 4; + + default: + return 0; } } inline DisplayType natural_display_type_for_data_type(InputDataType data_type) { switch(data_type) { + default: case InputDataType::Luminance1: case InputDataType::Luminance8: case InputDataType::PhaseLinkedLuminance8: