From c003f0499d1a6d77c133c5d1a8beb72cab95e02e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 17 Jan 2013 15:20:36 +0100 Subject: [PATCH] Assert when improper pixel type is passed to AbstractImage::pixelSize(). --- src/AbstractImage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AbstractImage.cpp b/src/AbstractImage.cpp index 19ffdc1f4..d7b4373e4 100644 --- a/src/AbstractImage.cpp +++ b/src/AbstractImage.cpp @@ -115,6 +115,7 @@ std::size_t AbstractImage::pixelSize(Format format, Type type) { CORRADE_INTERNAL_ASSERT(false); } + CORRADE_INTERNAL_ASSERT(false); return 0; }