Fix build for Android with android-clang
kernel/qnetworkinterface_linux.cpp:204:17: error: comparison of integers of different signs: '__u32' (aka 'unsigned int') and 'qsizetype' (aka 'int') [-Werror,-Wsign-compare]
if (NLMSG_OK(hdr, len))
^~~~~~~~~~~~~~~~~~
This amends 09cb23f342
.
Change-Id: Ib966a60b7a7117d63ed758cba7b556abd90eca0c
Reviewed-by: Mikhail Svetkin <mikhail.svetkin@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
56b04fe42f
commit
8050f1c287
@ -201,7 +201,7 @@ template <typename Lambda> struct ProcessNetlinkRequest
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG
|
#ifndef QT_NO_DEBUG
|
||||||
if (NLMSG_OK(hdr, len))
|
if (NLMSG_OK(hdr, quint32(len)))
|
||||||
qWarning("QNetworkInterface/AF_NETLINK: received unknown packet type (%d) or too short (%u)",
|
qWarning("QNetworkInterface/AF_NETLINK: received unknown packet type (%d) or too short (%u)",
|
||||||
hdr->nlmsg_type, hdr->nlmsg_len);
|
hdr->nlmsg_type, hdr->nlmsg_len);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user