001-m8cutils-fix-compilation.patch 794 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. GCC warns about unused functions.
  2. As m8cutils is compiled with -Werror, compilation fails in jrb.c
  3. ---
  4. libfdr/jrb.c | 5 ++++-
  5. 1 file changed, 4 insertions(+), 1 deletion(-)
  6. --- m8cutils-22.orig/libfdr/jrb.c
  7. +++ m8cutils-22/libfdr/jrb.c
  8. @@ -50,8 +50,10 @@ static JRB lprev(JRB n);
  9. static JRB rprev(JRB n);
  10. static void recolor(JRB n);
  11. static void single_rotate(JRB y, int l);
  12. +#if 0
  13. static void jrb_print_tree(JRB t, int level);
  14. static void jrb_iprint_tree(JRB t, int level);
  15. +#endif
  16. #define isred(n) (n->red)
  17. #define isblack(n) (!isred(n))
  18. @@ -549,7 +551,7 @@ void jrb_delete_node(JRB n)
  19. }
  20. }
  21. -
  22. +#if 0
  23. void jrb_print_tree(JRB t, int level)
  24. {
  25. int i;
  26. @@ -601,6 +603,7 @@ void jrb_iprint_tree(JRB t, int level)
  27. }
  28. }
  29. }
  30. +#endif
  31. int jrb_nblack(JRB n)
  32. {