aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-28 17:24:18 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:12:51 -0300
commit334024a4797350f75d34ba1842ea702e702080cb (patch)
tree05bccdca3b54a1e2ea1ba092c314a6a4134f7e70 /tests/libsample
parentad5778f8835da4953c3304fc3862a24258c6cac1 (diff)
Avoid compiler warning about unhandled constant in switch block.
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/expression.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsample/expression.cpp b/tests/libsample/expression.cpp
index d93d47f01..f6eedaa77 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();