]> sigrok.org Git - pulseview.git/commitdiff
Fix compiler warnings/errors due to -Wall.
authorUwe Hermann <redacted>
Wed, 20 Feb 2013 10:37:49 +0000 (11:37 +0100)
committerUwe Hermann <redacted>
Wed, 20 Feb 2013 10:37:49 +0000 (11:37 +0100)
pv/sigsession.cpp
pv/view/signal.cpp

index afe6f955a1e1e51c6aed5990e5d4dc5009220146..11ba6b068a180df0cb281c94a577ef7329d070de 100644 (file)
@@ -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) {
index ed414c7c510c13b60c0f6225bd93d69a443b16c2..abc29e2695a84ee7292670014ccd6462e6e362de 100644 (file)
@@ -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,