Merge feedback from upstream and modify the package change log to:

Silence static checkers; (beo#1506).

OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=142
This commit is contained in:
Lars Müller 2014-07-23 18:20:48 +00:00 committed by Git OBS Bridge
parent 72254c2535
commit 0ec4735cff
4 changed files with 23 additions and 19 deletions

View File

@ -1,7 +1,7 @@
-------------------------------------------------------------------
Wed Jul 23 13:09:41 UTC 2014 - lmuelle@suse.com
- Add no-return-in-find_variable.patch; (beo#1506).
- Silence static checkers; (beo#1506).
-------------------------------------------------------------------
Wed Jul 23 10:08:04 UTC 2014 - lmuelle@suse.com

View File

@ -77,7 +77,7 @@ Source31: eximstats.conf
Source32: exim.service
Patch: exim-tail.patch
Patch1: exim-enable_ecdh_openssl.patch
Patch2: no-return-in-find_variable.patch
Patch2: silence-static-checkers_beo1506.patch
%if !%{?build_with_mysql:1}0 && !%{?build_with_pgsql:1}0
%package -n eximon

View File

@ -1,17 +0,0 @@
Author: Lars Mueller <lmuelle@suse.com>
Subject: no-return-in-nonvoid-function expand.c:1882
Reported upstream: http://bugs.exim.org/show_bug.cgi?id=1506
Index: exim-4.83/src/expand.c
===================================================================
--- exim-4.83.orig/src/expand.c
+++ exim-4.83/src/expand.c
@@ -1879,6 +1879,8 @@ switch (vp->type)
#endif
}
+
+return NULL; /* Unknown variable name */
}

View File

@ -0,0 +1,21 @@
Author: Lars Mueller <lmuelle@suse.com>
Date: 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.
Index: exim-4.83/src/expand.c
===================================================================
--- exim-4.83.orig/src/expand.c
+++ exim-4.83/src/expand.c
@@ -1879,6 +1879,8 @@ switch (vp->type)
#endif
}
+
+return NULL; /* Unknown variable. Silences static checkers. */
}