summaryrefslogtreecommitdiffstats
path: root/examples/widgets/mac/CMakeLists.txt
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-05-10 10:41:01 +0300
committerMartin Storsjö <martin@martin.st>2024-05-11 11:02:39 +0300
commit7e6f44f38ba6d9b430e0dbaecaad31f3f9e0619b (patch)
tree69b26b7a22a6d266172575637084c63f77534fc9 /examples/widgets/mac/CMakeLists.txt
parented6d1fa71a79a70b7e6a20fbbc737ed9f6c287b1 (diff)
QDnsLookup: Fix -Wc++11-narrowing error on 32 bit WindowsHEADdev
This fixes errors like this, with Clang, for 32 bit Windows targets: src/network/kernel/qdnslookup_win.cpp:99:54: error: non-constant-expression cannot be narrowed from type 'DWORD' (aka 'unsigned long') to 'qsizetype' (aka 'int') in initializer list [-Wc++11-narrowing] 99 | if (!self->sendDnsOverTls(reply, { query.data(), dnsBufferSize }, replyBuffer)) | ^~~~~~~~~~~~~ src/network/kernel/qdnslookup_win.cpp:99:54: note: insert an explicit cast to silence this issue 99 | if (!self->sendDnsOverTls(reply, { query.data(), dnsBufferSize }, replyBuffer)) | ^~~~~~~~~~~~~ | static_cast<qsizetype>( ) Change-Id: If313e0910006f7556087f272123a0cfe1239f818 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/widgets/mac/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions