summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-04-23 13:37:46 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2015-04-23 13:37:46 -0400
commitc8c4f66889686d621abe9393306d3aea1fda3782 (patch)
tree7631fcda5e80a1da4cdbef387bdc14d105ad69b7 /src/dev
parent0cf36d94095aedef3c51447243c5a3cc14dd5d56 (diff)
downloadgem5-c8c4f66889686d621abe9393306d3aea1fda3782.tar.xz
misc: Appease gcc 5.1
This patch fixes a few small issues to ensure gem5 compiles when using gcc 5.1. First, the GDB_REG_BYTES in the RemoteGDB header are, rather surprisingly, flagged as unused for both ARM and X86. Removing them, however, causes compilation errors as they are actually used in the source file. Moving the constant into the class definition fixes the issue. Possibly a gcc bug. Second, we have an unused EthPktData constructor using auto_ptr, and the latter is deprecated. Since the code is never used it is simply removed.
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/etherpkt.hh4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/dev/etherpkt.hh b/src/dev/etherpkt.hh
index 16576d329..febd303a1 100644
--- a/src/dev/etherpkt.hh
+++ b/src/dev/etherpkt.hh
@@ -68,10 +68,6 @@ class EthPacketData
: data(new uint8_t[size]), length(0)
{ }
- EthPacketData(std::auto_ptr<uint8_t> d, int l)
- : data(d.release()), length(l)
- { }
-
~EthPacketData() { if (data) delete [] data; }
public: