]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: peers: Mark ctrl_msg_type_str() function as maybe unused
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 15 Oct 2025 07:50:13 +0000 (09:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Oct 2025 13:11:54 +0000 (15:11 +0200)
Since recent changes, this function is now unused but it could be good to
keep it. So mark it as maybe unused to avoid compilation warnings.

src/peers.c

index 340ba1fb38a289fa61bf065007478117f61f7de8..a3f67426552aa7de368ea315b18a38208efdccbd 100644 (file)
@@ -360,7 +360,7 @@ struct trace_source trace_peers = {
 };
 
 /* Return peer control message types as strings (only for debugging purpose). */
-static inline char *ctrl_msg_type_str(unsigned int type)
+static inline __maybe_unused char *ctrl_msg_type_str(unsigned int type)
 {
        switch (type) {
        case PEER_MSG_CTRL_RESYNCREQ: