diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2017-12-21 17:46:45 +0200 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2017-12-29 13:57:18 +0000 |
commit | 48ea14080ea0be33faa8a4390a89d501c807538a (patch) | |
tree | 6ab1a47ae3cc4c8d676b76677e54ca143ec98173 /tests/auto/corelib/tools/qringbuffer | |
parent | dcc605beb6d82ef89d1088eb8b1bd25f2f1f3bd6 (diff) |
QNetworkInterface: fix warning of unused function
That causes compilation error in developer build or when '-Werror'
command line argument is forced:
kernel/qnetworkinterface_unix.cpp:142:12: error: 'int getMtu(int, ifreq*)' defined but not used [-Werror=unused-function]
static int getMtu(int socket, struct ifreq *req)
^
cc1plus: all warnings being treated as errors
So, mark 'getMtu()' as unused in the appropriate branches.
Change-Id: Ib4d74845835962bb12f56baf8e13834c032a0404
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qringbuffer')
0 files changed, 0 insertions, 0 deletions