From: Uwe Hermann Date: Wed, 20 Feb 2013 10:37:49 +0000 (+0100) Subject: Fix compiler warnings/errors due to -Wall. X-Git-Tag: pulseview-0.1.0~126 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=94fe58efe521284904f7cddf2c8f833c2b8d48e8;p=pulseview.git Fix compiler warnings/errors due to -Wall. --- diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index afe6f955..11ba6b06 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -259,6 +259,8 @@ void SigSession::feed_in_header(const sr_dev_inst *sdi) void SigSession::feed_in_meta(const sr_dev_inst *sdi, const sr_datafeed_meta &meta) { + (void)sdi; + for (const GSList *l = meta.config; l; l = l->next) { const sr_config *const src = (const sr_config*)l->data; switch (src->key) { diff --git a/pv/view/signal.cpp b/pv/view/signal.cpp index ed414c7c..abc29e26 100644 --- a/pv/view/signal.cpp +++ b/pv/view/signal.cpp @@ -134,6 +134,8 @@ void Signal::paint_label(QPainter &p, int y, int right, bool hover) bool Signal::pt_in_label_rect(int y, int left, int right, const QPoint &point) { + (void)left; + const QRectF label = get_label_rect(y, right); return QRectF( QPointF(label.left() - LabelHitPadding,