Package: boinc-app-eah-brp / 0.20170426+dfsg-10

avoid_warnings_0.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: boinc-app-eah-brp/erp_boinc_wrapper.cpp
===================================================================
--- boinc-app-eah-brp.orig/erp_boinc_wrapper.cpp
+++ boinc-app-eah-brp/erp_boinc_wrapper.cpp
@@ -132,8 +132,10 @@ static void sighandler(int sig)
     static void *stackframes[64];
     static size_t nostackframes;
     static char **backtracesymbols = NULL;
+#ifdef __i386__
     ucontext_t *uc = (ucontext_t *)secret;
 #endif
+#endif
 
     /* lets start by ignoring ANY further occurrences of this signal
          (hopefully just in THIS thread, if truly implementing POSIX threads */
@@ -474,7 +476,7 @@ static int worker(void)
     }
 
     /* explicitly free command line resources (skip first entry) */
-    for(int i = 1; i < forward_argv.size(); ++i) {
+    for(unsigned int i = 1; i < forward_argv.size(); ++i) {
         if(forward_argv.at(i)) {
             free(forward_argv.at(i));
             forward_argv.at(i) = NULL;