Fix warning of unused variable
Only happens on systems without getifaddrs, which we aren't usually testing. Change-Id: I7de033f80b0e4431b7f1ffff13f9889f5cfdea5b Reviewed-by: Richard J. Moore <rich@kde.org>
This commit is contained in:
parent
c21113f9ee
commit
45e59556ed
@ -127,14 +127,13 @@ static QNetworkInterface::InterfaceFlags convertFlags(uint rawFlags)
|
|||||||
#ifdef QT_NO_GETIFADDRS
|
#ifdef QT_NO_GETIFADDRS
|
||||||
// getifaddrs not available
|
// getifaddrs not available
|
||||||
|
|
||||||
static const int STORAGEBUFFER_GROWTH = 256;
|
|
||||||
|
|
||||||
static QSet<QByteArray> interfaceNames(int socket)
|
static QSet<QByteArray> interfaceNames(int socket)
|
||||||
{
|
{
|
||||||
QSet<QByteArray> result;
|
QSet<QByteArray> result;
|
||||||
#ifdef QT_NO_IPV6IFNAME
|
#ifdef QT_NO_IPV6IFNAME
|
||||||
QByteArray storageBuffer;
|
QByteArray storageBuffer;
|
||||||
struct ifconf interfaceList;
|
struct ifconf interfaceList;
|
||||||
|
static const int STORAGEBUFFER_GROWTH = 256;
|
||||||
|
|
||||||
forever {
|
forever {
|
||||||
// grow the storage buffer
|
// grow the storage buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user