From: Gabe Black Date: Thu, 30 Jan 2020 07:47:53 +0000 (-0800) Subject: base: Delete an inet.hh accessor which is unused and makes gcc 9 upset. X-Git-Tag: v19.0.0.0~55 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5e95d16e22f809457985318561e58facea7c57a;p=gem5.git base: Delete an inet.hh accessor which is unused and makes gcc 9 upset. 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 Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/base/inet.hh b/src/base/inet.hh index 7d1235cc5..d016fd66d 100644 --- a/src/base/inet.hh +++ b/src/base/inet.hh @@ -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 &vec) const; };