From c62760e3cbe912e17c25e9fc0bd0810a79d676bb Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 12 Sep 2005 03:01:43 -0400 Subject: fixes for gcc 4.0 base/mysql.hh: include mysql_version to get rid of that annoying mysql error. make sure refcount is set in all constructors base/pollevent.hh: dev/ethertap.hh: dev/pciconfigall.hh: dev/tsunami_cchip.hh: dev/tsunami_io.hh: dev/tsunami_pchip.hh: sim/param.cc: fix for gcc 4 --HG-- extra : convert_revision : be626af2f40ca402818996ef27249ae256c63ef1 --- sim/param.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/param.cc') diff --git a/sim/param.cc b/sim/param.cc index 396fde3ac..bc81881d3 100644 --- a/sim/param.cc +++ b/sim/param.cc @@ -303,8 +303,8 @@ template void Param::parse(const string &); \ template void VectorParam::parse(const string &); \ template void Param::showValue(ostream &) const; \ template void VectorParam::showValue(ostream &) const; \ -void Param::showType(ostream &os) const { os << typestr; } \ -void VectorParam::showType(ostream &os) const { \ +template <> void Param::showType(ostream &os) const { os << typestr; } \ +template <> void VectorParam::showType(ostream &os) const { \ os << "vector of " << typestr; \ } #endif -- cgit v1.2.3