From: Ondrej Zajicek Date: Wed, 13 Dec 2023 17:07:38 +0000 (+0100) Subject: OSPF: Cleanup some warnings X-Git-Tag: v2.15~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b6bd8ca3a3955a407b0553009b05572693cfdf7;p=thirdparty%2Fbird.git OSPF: Cleanup some warnings --- diff --git a/proto/ospf/lsalib.h b/proto/ospf/lsalib.h index eca138d7e..77e52ce87 100644 --- a/proto/ospf/lsalib.h +++ b/proto/ospf/lsalib.h @@ -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);