From cc4a2e40ed9f114108a72ee8cfaa453ce478e833 Mon Sep 17 00:00:00 2001 From: Todd Lyons Date: Wed, 23 Jul 2014 07:09:06 -0700 Subject: [PATCH] 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. --- src/src/expand.c | 1 + 1 file changed, 1 insertion(+) 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 */ } -- 2.25.1