]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Cleanup some warnings
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 13 Dec 2023 17:07:38 +0000 (18:07 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 13 Dec 2023 17:07:38 +0000 (18:07 +0100)
proto/ospf/lsalib.h

index eca138d7e32cc5fafde90b5243b6c18f79c561ad..77e52ce875e4b0a6879768ca9bb019dbd38c8a9a 100644 (file)
@@ -16,8 +16,8 @@ static inline void lsa_hton_hdr(struct ospf_lsa_header *h, struct ospf_lsa_heade
 static inline void lsa_ntoh_hdr(struct ospf_lsa_header *n, struct ospf_lsa_header *h) { *h = *n; };
 static inline void lsa_hton_body(void *h, void *n, u16 len) { ASSERT(h != n); memcpy(n, h, len); };
 static inline void lsa_ntoh_body(void *n, void *h, u16 len) { ASSERT(n != h); memcpy(h, n, len); };
-static inline void lsa_hton_body1(void *h, u16 len) { };
-static inline void lsa_ntoh_body1(void *n, u16 len) { };
+static inline void lsa_hton_body1(void *h UNUSED, u16 len UNUSED) { };
+static inline void lsa_ntoh_body1(void *n UNUSED, u16 len UNUSED) { };
 #else
 void lsa_hton_hdr(struct ospf_lsa_header *h, struct ospf_lsa_header *n);
 void lsa_ntoh_hdr(struct ospf_lsa_header *n, struct ospf_lsa_header *h);