From: claudio Date: Wed, 17 Aug 2022 09:15:06 +0000 (+0000) Subject: Add default case to switch to silence a warning seen with gcc. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a6facc3c015a6c464a23448ed88d8a3daad1901f;p=openbsd Add default case to switch to silence a warning seen with gcc. --- diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c index 11cd2065f03..a395d175467 100644 --- a/usr.sbin/bgpd/printconf.c +++ b/usr.sbin/bgpd/printconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printconf.c,v 1.157 2022/07/28 13:11:50 deraadt Exp $ */ +/* $OpenBSD: printconf.c,v 1.158 2022/08/17 09:15:06 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -782,6 +782,8 @@ print_addpath_mode(enum addpath_mode mode) return "as-wide-best"; case ADDPATH_EVAL_ALL: return "all"; + default: + return "???"; } }