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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Git Commit
Date:  
À: exim-dev
Sujet: [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




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

commit 6c08476d09bf337921e7ba73e109e5f72fddfdf9
Author:     Lars Mueller <lmuelle@???>
AuthorDate: Wed Jul 23 07:22:52 2014 -0700
Commit:     Todd Lyons <tlyons@???>
CommitDate: Wed Jul 23 07:22:52 2014 -0700


    Bug 1506: Silence static checkers.


    Re-adds a return NULL which was removed because it was redundant. Static
      checkers don't parse the logic, so adding it back to make them happy.
---
 src/src/expand.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/src/src/expand.c b/src/src/expand.c
index 23009bc..70d7c7d 100644
--- a/src/src/expand.c
+++ b/src/src/expand.c
@@ -1879,7 +1879,8 @@ switch (vp->type)
#endif

}
-return NULL; /* Fix broken static checkers, already done in if() above */
+
+return NULL; /* Unknown variable. Silences static checkers. */
}




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