From c4882ea5aae8b1ad0fce85e19844a1c2ef97aa28 Mon Sep 17 00:00:00 2001 From: Nicolas 'Pixel' Noble Date: Sun, 20 Jan 2013 22:51:53 -0800 Subject: Adding an assert in for that case... --- src/Input.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Input.cc b/src/Input.cc index ae22109..b83a1be 100644 --- a/src/Input.cc +++ b/src/Input.cc @@ -258,7 +258,6 @@ ssize_t Balau::Input::read(void * buf, size_t count) throw (GeneralException) { delete cbResults; m_pendingOp = NULL; return result; - break; default: AAssert(false, "Don't switch operations while one is still not complete."); } @@ -274,6 +273,8 @@ ssize_t Balau::Input::read(void * buf, size_t count) throw (GeneralException) { m_pendingOp = NULL; throw; } + + IAssert(false, "Shouldn't end up there."); } bool Balau::Input::isClosed() { -- cgit v1.2.3