mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
editors/ted: drop bogus > 0 to fix build with llvm22
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user