From f5e95d16e22f809457985318561e58facea7c57a Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 29 Jan 2020 23:47:53 -0800 Subject: 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 --- src/base/inet.hh | 1 - 1 file changed, 1 deletion(-) 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; }; -- cgit v1.2.3