From ce43e46576ccf09d56aeb7021d3decd75d08d90c Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sat, 14 Jun 2008 12:57:21 -0700 Subject: Fix various SWIG warnings --- src/python/swig/event.i | 4 ++-- src/python/swig/range.i | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/python') diff --git a/src/python/swig/event.i b/src/python/swig/event.i index 9a2093c99..ee1f3d00b 100644 --- a/src/python/swig/event.i +++ b/src/python/swig/event.i @@ -44,8 +44,8 @@ void create(PyObject *object, Tick when); -class Event; -class CountedDrainEvent : public Event { +class CountedDrainEvent +{ public: void setCount(int _count); }; diff --git a/src/python/swig/range.i b/src/python/swig/range.i index 40809dae4..309e6a8ba 100644 --- a/src/python/swig/range.i +++ b/src/python/swig/range.i @@ -28,6 +28,8 @@ * Authors: Nathan Binkert */ +%rename(assign) *::operator=; + %include "base/range.hh" %include "sim/host.hh" -- cgit v1.2.3