Fix compiler warnings about unused parameters
When FEATUREs getiffaddrs and ipv6ifname are not enabled variables are unused. Pick-to: 5.15 6.2 6.3 Change-Id: I0fde7ef3a4ee1e89927e2c5550ac24fba76ba155 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
a072de78dd
commit
93a3d09840
@ -119,6 +119,7 @@ uint QNetworkInterfaceManager::interfaceIndexFromName(const QString &name)
|
||||
qt_safe_close(socket);
|
||||
return id;
|
||||
#else
|
||||
Q_UNUSED(name);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
@ -242,6 +243,7 @@ static QNetworkInterfacePrivate *findInterface(int socket, QList<QNetworkInterfa
|
||||
break;
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(socket);
|
||||
// Search by name
|
||||
QList<QNetworkInterfacePrivate *>::Iterator if_it = interfaces.begin();
|
||||
for ( ; if_it != interfaces.end(); ++if_it)
|
||||
|
Loading…
Reference in New Issue
Block a user