]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Minor cleanups
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 13 Jan 2023 12:32:29 +0000 (13:32 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 13 Jan 2023 12:32:29 +0000 (13:32 +0100)
filter/decl.m4
proto/mrt/mrt.c
sysdep/bsd/krt-sock.c

index d0c86912fcd26958dbfd2c886bfda36964730050..b602686756898c9669f9ade3db25d0b3c9520aca 100644 (file)
@@ -589,7 +589,7 @@ f_linearize_concat(const struct f_inst * const inst[], uint count, uint results)
   for (uint i=0; i<count; i++)
     out->len = linearize(out, inst[i], out->len);
 
-    out->results = results;
+  out->results = results;
 
 #ifdef LOCAL_DEBUG
   f_dump_line(out, 0);
index 321c6395523b0059e8d1a65489bd415f736b73e8..d1c334e121e0ea175c60a4a70995732e9395a1bc 100644 (file)
@@ -113,13 +113,13 @@ mrt_buffer_flush(buffer *b)
 }
 
 #define MRT_DEFINE_TYPE(S, T)                                          \
-  static inline void mrt_put_##S##_(buffer *b, T x)                    \
+  static inline void UNUSED mrt_put_##S##_(buffer *b, T x)             \
   {                                                                    \
     put_##S(b->pos, x);                                                        \
     b->pos += sizeof(T);                                               \
   }                                                                    \
                                                                        \
-  static inline void mrt_put_##S(buffer *b, T x)                       \
+  static inline void UNUSED mrt_put_##S(buffer *b, T x)                        \
   {                                                                    \
     mrt_buffer_need(b, sizeof(T));                                     \
     put_##S(b->pos, x);                                                        \
index 540c246f3af5a344151103b70ced96a993ac23cd..1f793293e9d5355259775cf2cb91630c5b76d6ab 100644 (file)
@@ -206,7 +206,7 @@ struct ks_msg
     memcpy(p, body, (l > sizeof(*p) ? sizeof(*p) : l));\
     body += l;}
 
-static inline void
+static inline void UNUSED
 sockaddr_fill_dl(struct sockaddr_dl *sa, struct iface *ifa)
 {
   uint len = OFFSETOF(struct sockaddr_dl, sdl_data);