From 0ebff976d805bda8cdf16962f87e2ab03c762f4f Mon Sep 17 00:00:00 2001 From: "Srivats P." Date: Thu, 22 May 2014 20:24:04 +0530 Subject: [PATCH] Fixed build warnings --- common/abstractprotocolconfig.h | 4 ++-- server/abstractport.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/abstractprotocolconfig.h b/common/abstractprotocolconfig.h index 3e87aeb..f9fd971 100644 --- a/common/abstractprotocolconfig.h +++ b/common/abstractprotocolconfig.h @@ -69,7 +69,7 @@ public: Subclasses MUST implement this function. See the SampleProtocol for an example */ - virtual void loadWidget(AbstractProtocol *proto) + virtual void loadWidget(AbstractProtocol* /*proto*/) { // Do nothing! } @@ -83,7 +83,7 @@ public: Subclasses MUST implement this function. See the SampleProtocol for an example */ - virtual void storeWidget(AbstractProtocol *proto) + virtual void storeWidget(AbstractProtocol* /*proto*/) { // Do nothing! } diff --git a/server/abstractport.cpp b/server/abstractport.cpp index 4aa97c6..ef3e881 100644 --- a/server/abstractport.cpp +++ b/server/abstractport.cpp @@ -172,7 +172,7 @@ void AbstractPort::updatePacketListSequential() { if (streamList_[i]->isEnabled()) { - int len; + int len = 0; ulong n, x, y; ulong burstSize; double ibg = 0; @@ -366,7 +366,7 @@ void AbstractPort::updatePacketListInterleaved() double numBursts = 0; double numPackets = 0; - quint64 _burstSize; + quint64 _burstSize = 0; double ibg = 0; quint64 _ibg1 = 0, _ibg2 = 0; quint64 _nb1 = 0, _nb2 = 0;