From: Todd Lyons Date: Wed, 23 Jul 2014 14:09:06 +0000 (-0700) Subject: Bug 1506: Fix static typechecker output X-Git-Tag: exim-4_84_RC1~7 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cc4a2e40ed9f114108a72ee8cfaa453ce478e833;p=exim.git Bug 1506: Fix static typechecker output The end of the function can never be reached because the switch is only reached if the value it is checking is valid. Putting this return silences the warnings. --- diff --git a/src/src/expand.c b/src/src/expand.c index c6356fbe1..23009bc4f 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -1879,6 +1879,7 @@ switch (vp->type) #endif } +return NULL; /* Fix broken static checkers, already done in if() above */ }