aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-01 13:25:42 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-01 13:25:42 +0800
commit9753d2452e66348c7349ef92bfdc256cad48245f (patch)
treef8495dc2be7ce12104c77e2b9887e3b346adac73 /editors
parent0d3a0a45caf2206f9ba6c89bdf84f2628bfaa209 (diff)
downloadfreebsd-ports-gnome-9753d2452e66348c7349ef92bfdc256cad48245f.tar.gz
freebsd-ports-gnome-9753d2452e66348c7349ef92bfdc256cad48245f.tar.zst
freebsd-ports-gnome-9753d2452e66348c7349ef92bfdc256cad48245f.zip
editors/madedit: unbreak with clang 4.0
src/MadOptionsDialog.cpp:1179:56: error: ordered comparison between pointer and zero ('const wxChar *' (aka 'const wchar_t *') and 'int') if(g_SelectedCommandItem->cmddata->menuid_name > 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ src/MadOptionsDialog.cpp:1277:42: error: ordered comparison between pointer and zero ('const wxChar *' (aka 'const wchar_t *') and 'int') if(tid->cmddata->menuid_name > 0) ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ PR: 216076 Reported by: antoine (via exp-run)
Diffstat (limited to 'editors')
-rw-r--r--editors/madedit/files/patch-src_MadOptionsDialog.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/madedit/files/patch-src_MadOptionsDialog.cpp b/editors/madedit/files/patch-src_MadOptionsDialog.cpp
new file mode 100644
index 000000000000..c7021b100ee7
--- /dev/null
+++ b/editors/madedit/files/patch-src_MadOptionsDialog.cpp
@@ -0,0 +1,20 @@
+--- src/MadOptionsDialog.cpp.orig 2017-02-01 03:37:19 UTC
++++ src/MadOptionsDialog.cpp
+@@ -1176,7 +1176,7 @@ void MadOptionsDialog::WxTreeCtrl1SelCha
+ {
+ WxListBoxKeys->Set(g_SelectedCommandItem->keys);
+ wxString hint=wxT('[');
+- if(g_SelectedCommandItem->cmddata->menuid_name > 0)
++ if(g_SelectedCommandItem->cmddata->menuid_name)
+ {
+ hint+= wxString(g_SelectedCommandItem->cmddata->menuid_name);
+ }
+@@ -1274,7 +1274,7 @@ void MadOptionsDialog::UpdateKeyHint()
+ g_CommandItemOfNewKey=tid;
+ wxString cmd;
+
+- if(tid->cmddata->menuid_name > 0)
++ if(tid->cmddata->menuid_name)
+ {
+ cmd+= wxString(tid->cmddata->menuid_name);
+ }