]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Suppressed MRT unused static function warning
authorMaria Matejka <mq@ucw.cz>
Thu, 30 Sep 2021 09:54:11 +0000 (11:54 +0200)
committerMaria Matejka <mq@ucw.cz>
Tue, 9 Nov 2021 18:20:41 +0000 (19:20 +0100)
proto/mrt/mrt.c

index 03f0d59e7ccd7012657ceda50ab7e69ca62bcbf9..5da3c7c6bbc12d34dd578ce6bd72fede7fc4e3b4 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)                    \
+  UNUSED static inline void 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)                       \
+  UNUSED static inline void mrt_put_##S(buffer *b, T x)                        \
   {                                                                    \
     mrt_buffer_need(b, sizeof(T));                                     \
     put_##S(b->pos, x);                                                        \