Fix compiler warnings about unused parameters
When FEATUREs getiffaddrs and ipv6ifname are not enabled variables are unused. Change-Id: I0fde7ef3a4ee1e89927e2c5550ac24fba76ba155 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 93a3d098409f4bcea7fff9616c863b9c50b18ad0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
74838afb05
commit
2d30cc65a3
@ -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…
x
Reference in New Issue
Block a user