summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-03-16 11:00:02 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-03-16 11:00:02 +0100
commit4b216f58dcbecbc190d0f35afaa91df82b28ae84 (patch)
tree6aabd9aebddedbd4268393f809dfb6effe4d6a6d /bgpd
parentMerge pull request #12982 from opensourcerouting/fix/commmitlint_condition (diff)
downloadfrr-4b216f58dcbecbc190d0f35afaa91df82b28ae84.tar.xz
frr-4b216f58dcbecbc190d0f35afaa91df82b28ae84.zip
bgpd: fix NULL argument warning
gcc 12.2.0 complains `error: ā€˜%sā€™ directive argument is null`, even though all enum values are covered with a string. Let's just go with a `???` default. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index fb7b99877..f90668d85 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -2817,7 +2817,7 @@ const char *print_peer_gr_cmd(enum peer_gr_command pr_gr_cmd)
const char *print_global_gr_mode(enum global_mode gl_mode)
{
- const char *global_gr_mode = NULL;
+ const char *global_gr_mode = "???";
switch (gl_mode) {
case GLOBAL_HELPER: