From 63e76b312d355bd9593fbd6d33ddc357e1c6261b Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 1 Feb 2017 05:27:46 +0000 Subject: [PATCH] x11/antimicro: unbreak with clang 4.0 src/mainwindow.cpp:367:19: error: ordered comparison between pointer and zero ('QMap *' (aka 'QMap *') and 'int') if (joysticks > 0) ~~~~~~~~~ ^ ~ PR: 216358 Reported by: antoine (via exp-run) --- x11/antimicro/Makefile | 1 + x11/antimicro/files/patch-src_mainwindow.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 x11/antimicro/files/patch-src_mainwindow.cpp diff --git a/x11/antimicro/Makefile b/x11/antimicro/Makefile index 13db9cbcb24c..4e2280b93904 100644 --- a/x11/antimicro/Makefile +++ b/x11/antimicro/Makefile @@ -3,6 +3,7 @@ PORTNAME= antimicro PORTVERSION= 2.23 +PORTREVISION= 1 CATEGORIES= x11 MAINTAINER= ports@FreeBSD.org diff --git a/x11/antimicro/files/patch-src_mainwindow.cpp b/x11/antimicro/files/patch-src_mainwindow.cpp new file mode 100644 index 000000000000..f6142e195cb0 --- /dev/null +++ b/x11/antimicro/files/patch-src_mainwindow.cpp @@ -0,0 +1,11 @@ +--- src/mainwindow.cpp.orig 2016-11-06 01:23:03 UTC ++++ src/mainwindow.cpp +@@ -364,7 +364,7 @@ void MainWindow::makeJoystickTabs() + ui->tabWidget->addTab(tabwidget, joytabName); + } + +- if (joysticks > 0) ++ if (joysticks->size() > 0) + { + ui->tabWidget->setCurrentIndex(0); + ui->stackedWidget->setCurrentIndex(1);