aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-01 13:25:29 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-01 13:25:29 +0800
commit0d3a0a45caf2206f9ba6c89bdf84f2628bfaa209 (patch)
tree2d14e2590b11cc38796a51db31c1dec606872cf1
parent2a77777982f6ebdeb0e3139461591969b804827f (diff)
downloadfreebsd-ports-gnome-0d3a0a45caf2206f9ba6c89bdf84f2628bfaa209.tar.gz
freebsd-ports-gnome-0d3a0a45caf2206f9ba6c89bdf84f2628bfaa209.tar.zst
freebsd-ports-gnome-0d3a0a45caf2206f9ba6c89bdf84f2628bfaa209.zip
audio/mixxx: unbreak with clang 4.0
src/widget/wdisplay.cpp:89:19: error: ordered comparison between pointer and zero ('QPixmap **' and 'int') if (m_pPixmaps>0) ~~~~~~~~~~^~ PR: 216354 Reported by: antoine (via exp-run) Submitted by: tcberner
-rw-r--r--audio/mixxx/files/patch-src_widget_wdisplay.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/mixxx/files/patch-src_widget_wdisplay.cpp b/audio/mixxx/files/patch-src_widget_wdisplay.cpp
new file mode 100644
index 000000000000..806c99c008f0
--- /dev/null
+++ b/audio/mixxx/files/patch-src_widget_wdisplay.cpp
@@ -0,0 +1,13 @@
+Fix bogus pointer comparison.
+
+--- src/widget/wdisplay.cpp.orig 2013-05-08 23:20:26 UTC
++++ src/widget/wdisplay.cpp
+@@ -86,7 +86,7 @@ void WDisplay::setPixmap(int iPos, const
+
+ void WDisplay::paintEvent(QPaintEvent *)
+ {
+- if (m_pPixmaps>0)
++ if (m_pPixmaps)
+ {
+ int idx = (int)(m_fValue*(float)(m_iNoPos)/128.);
+ // Range check