diff options
author | Laszlo Papp <lpapp@kde.org> | 2013-08-29 07:09:52 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 23:45:19 +0200 |
commit | be200afdea49d8b50870295832a1e1af46186631 (patch) | |
tree | fb1a3a46fbe09092f1639f110f4103ba3a9a93d5 /tools | |
parent | b30d7c9ee8fbc3a395c74b618f2ab176ae1e7f7e (diff) |
Fix a warning about not using a set variable
6a36bcb7945109daebd6464ee6d0a3f6724fb18b fixed similar warnings, but apparently
the tools folder was left out.
Change-Id: If7f889e404264688fa6208afcd3bfdba5a161714
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmlprofiler/qpacketprotocol.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlprofiler/qpacketprotocol.cpp b/tools/qmlprofiler/qpacketprotocol.cpp index b0cb289c10..e0fe08740d 100644 --- a/tools/qmlprofiler/qpacketprotocol.cpp +++ b/tools/qmlprofiler/qpacketprotocol.cpp @@ -288,6 +288,7 @@ void QPacketProtocol::send(const QPacket & p) d->sendingPackets.append(sendSize); qint32 sendSize32 = sendSize; qint64 writeBytes = d->dev->write((char *)&sendSize32, sizeof(qint32)); + Q_UNUSED(writeBytes); Q_ASSERT(writeBytes == sizeof(qint32)); writeBytes = d->dev->write(p.b); Q_ASSERT(writeBytes == p.b.size()); |