File: gcc-11.patch

package info (click to toggle)
tcm 2.20%2BTSQD-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,932 kB
  • sloc: ansic: 78,547; sh: 3,618; makefile: 1,353; perl: 753; yacc: 595; lex: 257
file content (32 lines) | stat: -rw-r--r-- 1,237 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Author: Andreas Beckmann <anbe@debian.org>
Description: avoid formatting warnings and drop useless int2pointer cast

--- a/src/gl/llist.h
+++ b/src/gl/llist.h
@@ -103,11 +103,13 @@ public:
 
 	/// sets current to next element + returns if there is a next element.
 	int next() { 
-		if (current) current=current->next; return (current != 0); }
+		if (current) current=current->next;
+		return (current != 0); }
 
 	/// sets current to prev. element + returns if there is a prev. element.
 	int prev() { 
-		if (current) current=current->prev; return (current != 0); }
+		if (current) current=current->prev;
+		return (current != 0); }
 
 	/// returns current element (Check first with 'done'!)
 	T &cur() const { return current->item;}
--- a/src/sd/dv/c2r2mlistline.c
+++ b/src/sd/dv/c2r2mlistline.c
@@ -420,7 +420,7 @@ void C2R2MListLine::DrawShape() {
 	CalcDirection();
 	DrawDirection();
 	CalcPositionTextShapes();
-	if ((CBDMessage *)((CBObjectLinkEdge *)GetSubject())->NrOfMessages() > 0) {
+	if (((CBObjectLinkEdge *)GetSubject())->NrOfMessages() > 0) {
 		int i = 0;
 		for (GetTList()->first(); !GetTList()->done(); GetTList()->next()) {
 //			CBDMessage *msg = (CBDMessage *)((CBObjectLinkEdge *)GetSubject())->GetMessage(i);