base: Delete an inet.hh accessor which is unused and makes gcc 9 upset.
authorGabe Black <gabeblack@google.com>
Thu, 30 Jan 2020 07:47:53 +0000 (23:47 -0800)
committerGabe Black <gabeblack@google.com>
Sat, 1 Feb 2020 09:25:22 +0000 (09:25 +0000)
This accessor will return a pointer to an unaligned uint32_t. Since
it's not used and it's not clear how to fix it trivially, this change
just deletes it.

Change-Id: I08bc62276d639cc728411f3a8a23be385000ebab
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24925
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/inet.hh

index 7d1235cc5049a332e1799a58168ee4c6c3fc98d6..d016fd66daf115a5ce6504939ab66b1cac3c1802 100644 (file)
@@ -352,7 +352,6 @@ struct IpOpt : public ip_opt
     uint16_t mtup() const { return ntohs(opt_data.mtu); }
     uint16_t mtur() const { return ntohs(opt_data.mtu); }
     void tr(ip_opt_data_tr &tr) const;
-    const uint32_t *addext() const { return &opt_data.addext[0]; }
     uint16_t rtralt() const { return ntohs(opt_data.rtralt); }
     void sdb(std::vector<uint32_t> &vec) const;
 };