From: Christopher Faulet Date: Wed, 15 Oct 2025 07:50:13 +0000 (+0200) Subject: BUILD: peers: Mark ctrl_msg_type_str() function as maybe unused X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2757131177673ae8fc2f4ed732e5a248f5de3dc7;p=thirdparty%2Fhaproxy.git BUILD: peers: Mark ctrl_msg_type_str() function as maybe unused 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. --- diff --git a/src/peers.c b/src/peers.c index 340ba1fb3..a3f674265 100644 --- a/src/peers.c +++ b/src/peers.c @@ -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: