File: gcc-10.patch

package info (click to toggle)
openoverlayrouter 1.3.0%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 4,552 kB
  • sloc: ansic: 42,180; sh: 272; makefile: 268; xml: 11
file content (98 lines) | stat: -rw-r--r-- 2,578 bytes parent folder | download | duplicates (2)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Author: Nicolas Mora <babelouest@debian.org>
Description: Fix gcc-10 warnings
===================================================================
--- a/oor/cmdline.c
+++ b/oor/cmdline.c
@@ -404,13 +404,11 @@
                const char *long_opt, char short_opt,
                const char *additional_error)
 {
-  char *stop_char = 0;
   const char *val = value;
   int found;
   char **string_field;
   FIX_UNUSED (field);
 
-  stop_char = 0;
   found = 0;
 
   if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given)))
@@ -484,30 +482,6 @@
   return 0; /* OK */
 }
 
-
-static int check_modes(
-  int given1[], const char *options1[],
-                       int given2[], const char *options2[])
-{
-  int i = 0, j = 0, errors = 0;
-  
-  while (given1[i] >= 0) {
-    if (given1[i]) {
-      while (given2[j] >= 0) {
-        if (given2[j]) {
-          ++errors;
-          fprintf(stderr, "%s: option %s conflicts with option %s\n",
-                  package_name, options1[i], options2[j]);
-        }
-        ++j;
-      }
-    }
-    ++i;
-  }
-  
-  return errors;
-}
-
 int
 cmdline_parser_internal (
   int argc, char **argv, struct gengetopt_args_info *args_info,
@@ -520,14 +494,12 @@
   
   int override;
   int initialize;
-  int check_required;
   int check_ambiguity;
   
   package_name = argv[0];
   
   override = params->override;
   initialize = params->initialize;
-  check_required = params->check_required;
   check_ambiguity = params->check_ambiguity;
 
   if (initialize)
--- a/oor/control/lisp_rtr.c
+++ b/oor/control/lisp_rtr.c
@@ -671,7 +671,7 @@
 static int
 rtr_recv_map_notify(lisp_rtr_t *rtr, lbuf_t *buf, void *ecm_hdr, uconn_t *int_uc, uconn_t *ext_uc)
 {
-    void *hdr, *auth_hdr;
+    void *hdr, *auth_hdr = NULL;
     nonces_list_t *nonces_lst;
     oor_timer_t *timer;
     lbuf_t b;
--- a/oor/data-plane/tun/tun.c
+++ b/oor/data-plane/tun/tun.c
@@ -494,7 +494,7 @@
 {
     int old_addr_lafi,old_addr_ip_afi, new_addr_lafi,new_addr_ip_afi, table;
     int sckt;
-    iface_t * def_iface;
+    iface_t * def_iface = NULL;
     tun_dplane_data_t *data;
 
     data = (tun_dplane_data_t *)dplane_tun.datap_data;
--- a/oor/lib/map_cache_rtr_data.c
+++ b/oor/lib/map_cache_rtr_data.c
@@ -140,7 +140,7 @@
         lisp_xtr_id *xtr_id)
 {
     mc_rtr_data_t *rtr_data = mce->dev_specific_data;
-    locator_t *loct;
+    locator_t *loct = NULL;
     locator_t *emr_loct = NULL; // Locator from where we received EMReg
     uint8_t  match;
     glist_t *xtrid_nat_locts, *match_nat_locts; // <rloc_nat_data_t>