aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/issp/patches/001-m8cutils-fix-compilation.patch
blob: d3defa56ded57ddfb3e8ac12d9e6472158853b48 (plain)
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
33
34
35
36
37
GCC warns about unused functions.
As m8cutils is compiled with -Werror, compilation fails in jrb.c

---
 libfdr/jrb.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- m8cutils-22.orig/libfdr/jrb.c
+++ m8cutils-22/libfdr/jrb.c
@@ -50,8 +50,10 @@ static JRB lprev(JRB n);
 static JRB rprev(JRB n);
 static void recolor(JRB n);
 static void single_rotate(JRB y, int l);
+#if 0
 static void jrb_print_tree(JRB t, int level);
 static void jrb_iprint_tree(JRB t, int level);
+#endif
  
 #define isred(n) (n->red)
 #define isblack(n) (!isred(n))
@@ -549,7 +551,7 @@ void jrb_delete_node(JRB n)
   }
 }
  
- 
+#if 0 
 void jrb_print_tree(JRB t, int level)
 {
   int i;
@@ -601,6 +603,7 @@ void jrb_iprint_tree(JRB t, int level)
     }
   }
 }
+#endif
       
 int jrb_nblack(JRB n)
 {
bues.ch cgit interface