Permalink
Browse files

Remove a cppcheck warning and update suppression file

  • Loading branch information...
1 parent 60b1ade commit 84a24f2a348726050c5fc21f7a9ea8f20535b3f7 @caryr caryr committed Jan 2, 2013
Showing with 5 additions and 7 deletions.
  1. +3 −5 PGate.cc
  2. +2 −2 cppcheck.sup
View
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999-2010 Stephen Williams (steve@icarus.com)
+ * Copyright (c) 1999-2013 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@@ -260,18 +260,16 @@ const char* PGBuiltin::gate_name() const
}
PGModule::PGModule(perm_string type, perm_string name, list<PExpr*>*pins)
-: PGate(name, pins), bound_type_(0), overrides_(0), pins_(0),
+: PGate(name, pins), bound_type_(0), type_(type), overrides_(0), pins_(0),
npins_(0), parms_(0), nparms_(0), msb_(0), lsb_(0)
{
- type_ = type;
}
PGModule::PGModule(perm_string type, perm_string name,
named<PExpr*>*pins, unsigned npins)
-: PGate(name, 0), bound_type_(0), overrides_(0), pins_(pins),
+: PGate(name, 0), bound_type_(0), type_(type), overrides_(0), pins_(pins),
npins_(npins), parms_(0), nparms_(0), msb_(0), lsb_(0)
{
- type_ = type;
}
PGModule::PGModule(Module*type, perm_string name)
View
@@ -1,3 +1,3 @@
// These are correct and are used to find the base (zero) pin.
-thisSubtraction:netlist.h:4430
-thisSubtraction:netlist.h:4439
+thisSubtraction:netlist.h:4432
+thisSubtraction:netlist.h:4441

0 comments on commit 84a24f2

Please sign in to comment.