mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 16:39:33 +00:00
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>
This commit is contained in:
parent
b8d099e02b
commit
4b216f58dc
@ -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 *print_global_gr_mode(enum global_mode gl_mode)
|
||||||
{
|
{
|
||||||
const char *global_gr_mode = NULL;
|
const char *global_gr_mode = "???";
|
||||||
|
|
||||||
switch (gl_mode) {
|
switch (gl_mode) {
|
||||||
case GLOBAL_HELPER:
|
case GLOBAL_HELPER:
|
||||||
|
Loading…
Reference in New Issue
Block a user