]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes some warnings.
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 2 Oct 2014 08:59:34 +0000 (10:59 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 2 Oct 2014 10:52:50 +0000 (12:52 +0200)
nest/rt-attr.c
proto/bfd/bfd.c
sysdep/unix/io.c

index 97a1bc27ac47b04236da2afd75db87c490a75c2b..09691bf1498c0bb67be7ed5a5248862aff025b61 100644 (file)
@@ -815,7 +815,7 @@ rta_alloc_hash(void)
 static inline unsigned int
 rta_hash(rta *a)
 {
-  return (((unsigned) a->src) ^ ipa_hash(a->gw) ^
+  return (((uint) (uintptr_t) a->src) ^ ipa_hash(a->gw) ^
          mpnh_hash(a->nexthops) ^ ea_hash(a->eattrs)) & 0xffff;
 }
 
index 7bbe8c2142097b72768191bb3c3ca5184ccaac1f..23e04e408b6f44ede822d5fc7207266aa2dc49e6 100644 (file)
@@ -1062,7 +1062,7 @@ bfd_copy_config(struct proto_config *dest, struct proto_config *src)
   // struct bfd_config *s = (struct bfd_config *) src;
 
   /* We clean up patt_list and neigh_list, neighbors and ifaces are non-sharable */
-  init_list(&d->patt_list);  
+  init_list(&d->patt_list);
   init_list(&d->neigh_list);
 }
 
@@ -1071,7 +1071,7 @@ bfd_show_sessions(struct proto *P)
 {
   byte tbuf[TM_DATETIME_BUFFER_SIZE];
   struct bfd_proto *p = (struct bfd_proto *) P;
-  uint state, diag;
+  uint state, diag UNUSED;
   u32 tx_int, timeout;
   const char *ifname;
 
index a5477695f69f08f91e1e01d2c24859983991b3a0..164038ec9a6de529eb3432059e23e25cecc14261 100644 (file)
@@ -1967,7 +1967,7 @@ io_loop(void)
          while (current_sock && count < MAX_RX_STEPS)
            {
              sock *s = current_sock;
-             int e;
+             int e UNUSED;
 
              if ((s->type < SK_MAGIC) && FD_ISSET(s->fd, &rd) && s->rx_hook)
                {