From 5bfe40a435b49cf23aac247d1f6336def879ee71 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 28 Dec 2010 17:24:18 -0200 Subject: Avoid compiler warning about unhandled constant in switch block. --- tests/libsample/expression.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/libsample/expression.cpp b/tests/libsample/expression.cpp index d93d47f0..f6eedaa7 100644 --- a/tests/libsample/expression.cpp +++ b/tests/libsample/expression.cpp @@ -118,6 +118,9 @@ std::string Expression::toString() const case GreaterThan: op = '<'; break; + case None: // just to avoid the compiler warning + default: + break; } result += op; result += m_operand2->toString(); -- cgit