Skip to content

Commit

Permalink
bgpd: fix NULL argument warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
eqvinox authored and donaldsharp committed Jan 25, 2024
1 parent 96c4264 commit b68a7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2838,7 +2838,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:
Expand Down

0 comments on commit b68a7e8

Please sign in to comment.