[exim-dev] [Bug 1506] expand.c:1882 compile fails with no-r…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Git Commit
日付:  
To: exim-dev
題目: [exim-dev] [Bug 1506] expand.c:1882 compile fails with no-return-in-nonvoid-function
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1506

Git Commit <git@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@???





--- Comment #3 from Git Commit <git@???> 2014-07-23 16:17:07 ---
Git commit:
http://git.exim.org/exim.git/commitdiff/cc4a2e40ed9f114108a72ee8cfaa453ce478e833

commit cc4a2e40ed9f114108a72ee8cfaa453ce478e833
Author:     Todd Lyons <tlyons@???>
AuthorDate: Wed Jul 23 07:09:06 2014 -0700
Commit:     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 */
}




--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email