From 86bb73692b7ef01e63215bd8e2aa2e842538ffc7 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 25 May 2026 18:12:42 +0000 Subject: [PATCH] editors/ted: drop bogus > 0 to fix build with llvm22 --- editors/ted/Makefile | 2 +- editors/ted/patches/patch-appFrame_appTree_c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 editors/ted/patches/patch-appFrame_appTree_c diff --git a/editors/ted/Makefile b/editors/ted/Makefile index 896bc2e6af6..c740326141a 100644 --- a/editors/ted/Makefile +++ b/editors/ted/Makefile @@ -1,7 +1,7 @@ COMMENT = X11 based RTF editor V = 2.17 DISTNAME = ted-$V -REVISION = 6 +REVISION = 7 CATEGORIES = editors textproc print HOMEPAGE = http://www.nllgg.nl/Ted/ SITES = ftp://ftp.nluug.nl/pub/editors/ted/ diff --git a/editors/ted/patches/patch-appFrame_appTree_c b/editors/ted/patches/patch-appFrame_appTree_c new file mode 100644 index 00000000000..d6ca0318001 --- /dev/null +++ b/editors/ted/patches/patch-appFrame_appTree_c @@ -0,0 +1,16 @@ +Fix build with llvm22 + +error: chained comparison 'X > Y > Z' does not behave the same as a mathematical expression [-Wparentheses] + +Index: appFrame/appTree.c +--- appFrame/appTree.c.orig ++++ appFrame/appTree.c +@@ -356,7 +356,7 @@ static int appDrawTreeNode( TreeDocument * td, + } + + if ( ( ! tn->tnParent || tn->tnIsOpen ) && +- tn->tnChildCount > 0 > 0 ) ++ tn->tnChildCount > 0 ) + { + TreeNode * tl= tn->tnChildren[tn->tnChildCount-1]; +