pkgsrc/net/xorp/patches/patch-policy_backend_iv__exec.cc
joerg 0426d1b980 Fix a number of issues found by clang:
- missing this references to ensure template functions are found
- using == as assignment
- unused functions in lex sources
- adding integers to strings instead of formatting them
- class vs struct mismatches
2012-07-03 17:36:10 +00:00

13 lines
468 B
C++

$NetBSD: patch-policy_backend_iv__exec.cc,v 1.1 2012/07/03 17:36:10 joerg Exp $
--- policy/backend/iv_exec.cc.orig 2009-01-05 18:31:06.000000000 +0000
+++ policy/backend/iv_exec.cc
@@ -269,7 +269,7 @@ void
IvExec::visit(Store& s)
{
if (_stackptr < _stack)
- xorp_throw(RuntimeError, "Stack empty on assign of " + s.var());
+ xorp_throw(RuntimeError, c_format("Stack empty on assign of %d", s.var()));
const Element* arg = *_stackptr;
_stackptr--;