From d5dea3506e4bb55ebea5a225c70e24e8d6c800ac Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 30 Jan 2023 10:08:25 -0500 Subject: pathd: Add missing enum's to switch statement Signed-off-by: Donald Sharp --- pathd/path_cli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pathd/path_cli.c') diff --git a/pathd/path_cli.c b/pathd/path_cli.c index b88453c68f..66680357da 100644 --- a/pathd/path_cli.c +++ b/pathd/path_cli.c @@ -1079,9 +1079,11 @@ static const char *objfun_type_name(enum objfun_type type) return "mss"; case OBJFUN_MSN: return "msn"; - default: + case OBJFUN_UNDEFINED: return NULL; } + + assert(!"Reached end of function we should never hit"); } DEFPY_NOSH(show_debugging_pathd, show_debugging_pathd_cmd, -- cgit v1.2.3