mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-06 02:01:01 +01:00
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.
This commit is contained in:
parent
0807ebacc1
commit
02607a97d5
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user