aboutsummaryrefslogtreecommitdiffstats
path: root/package/tvheadend/tvheadend-fix-Werror.patch
blob: 5f6dbad821da6c34102b2ad3f37708307a506e04 (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
38
39
40
41
42
43
44
commit 1334869bf0ea668e58e1c72daa3c09c1a95b5d81
Author: Alexey I. Froloff <raorn@raorn.name>
Date:   Wed Oct 24 21:10:15 2012 +0400

    [PR-172] Fix compilatioin issues on OpenWRT
    
    Fix SHA1_* function names
    Fix unused variables and functions

---
"Yann E. MORIN" <yann.morin.1998@free.fr>:
    For buildroot, I removed the SHA_* fixes, as we're not affected.
    No point in fixing something that does not bug us.

diff --git a/src/trap.c b/src/trap.c
index bd76118..b0fe543 100644
--- a/src/trap.c
+++ b/src/trap.c
@@ -67,6 +67,7 @@ sappend(char *buf, size_t l, const char *fmt, ...)
 /**
  *
  */
+#if ENABLE_EXECINFO
 static int
 add2lineresolve(const char *binary, void *addr, char *buf0, size_t buflen)
 {
@@ -126,6 +127,7 @@ add2lineresolve(const char *binary, void *addr, char *buf0, size_t buflen)
   close(fd[0]);
   return 0;
 }
+#endif /* ENABLE_EXECINFO */
 
 
 
@@ -133,8 +135,8 @@ static void
 traphandler(int sig, siginfo_t *si, void *UC)
 {
   ucontext_t *uc = UC;
-  char buf[200];
 #if ENABLE_EXECINFO
+  char buf[200];
   static void *frames[MAXFRAMES];
   int nframes = backtrace(frames, MAXFRAMES);
   Dl_info dli;