[exim-cvs] Bug 1506: Fix static typechecker output

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Exim Git Commits Mailing List
日付:  
To: exim-cvs
題目: [exim-cvs] Bug 1506: Fix static typechecker output
Gitweb: http://git.exim.org/exim.git/commitdiff/cc4a2e40ed9f114108a72ee8cfaa453ce478e833
Commit:     cc4a2e40ed9f114108a72ee8cfaa453ce478e833
Parent:     1f0ebb98148c1ed3ea4e9db0134b3aa90c4d70eb
Author:     Todd Lyons <tlyons@???>
AuthorDate: Wed Jul 23 07:09:06 2014 -0700
Committer:  Todd Lyons <tlyons@???>
CommitDate: Wed Jul 23 07:09:06 2014 -0700


    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 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/src/src/expand.c b/src/src/expand.c
index c6356fb..23009bc 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 */
}