struct ifmediareq *ifmrp is only used in the COMPAT_FREEBSD32 parts of
ifioctl(). Move it inside the proper #ifdef. This was throwing a valid "Assigned but unused" warning with gcc. Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D16063
This commit is contained in:
parent
5f1347d7c9
commit
2da1967762
@ -2969,8 +2969,8 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct thread *td)
|
||||
#ifdef COMPAT_FREEBSD32
|
||||
caddr_t saved_data = NULL;
|
||||
struct ifmediareq ifmr;
|
||||
#endif
|
||||
struct ifmediareq *ifmrp;
|
||||
#endif
|
||||
struct ifnet *ifp;
|
||||
struct ifreq *ifr;
|
||||
int error;
|
||||
@ -3016,8 +3016,8 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct thread *td)
|
||||
#endif
|
||||
}
|
||||
|
||||
ifmrp = NULL;
|
||||
#ifdef COMPAT_FREEBSD32
|
||||
ifmrp = NULL;
|
||||
switch (cmd) {
|
||||
case SIOCGIFMEDIA32:
|
||||
case SIOCGIFXMEDIA32:
|
||||
|
Loading…
x
Reference in New Issue
Block a user