From: Maria Matejka Date: Fri, 1 May 2020 13:41:42 +0000 (+0200) Subject: Fixed a harmless warning in production build X-Git-Tag: v2.0.8~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b12442c985f2bd8c9fd47ca63151724962fabdc2;p=thirdparty%2Fbird.git Fixed a harmless warning in production build --- diff --git a/nest/rt-show.c b/nest/rt-show.c index bd0df9ee6..7691878dd 100644 --- a/nest/rt-show.c +++ b/nest/rt-show.c @@ -107,8 +107,7 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d) /* The Clang static analyzer complains that ec may be NULL. * It should be ensured to be not NULL by rt_show_prepare_tables() */ - if (d->export_mode) - ASSUME(ec); + ASSUME(!d->export_mode || ec); int first = 1; int pass = 0;