[Pkg-voip-commits] [libss7] 24/51: Patch gcc46: Fix the gcc 4.6 warnings (Closes: 625375).
tzafrir at debian.org
tzafrir at debian.org
Mon Oct 31 09:39:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master
in repository libss7.
commit bc2c6354f04e366653705b67f0949bec2737434f
Author: Tzafrir Cohen <tzafrir at debian.org>
Date: Fri Nov 25 08:02:31 2011 +0000
Patch gcc46: Fix the gcc 4.6 warnings (Closes: 625375).
git-svn-id: svn://anonscm.alioth.debian.org/svn/pkg-voip/libss7/trunk@9370 5e74be4b-f5d6-0310-a852-e9e23c5afa6a
---
debian/changelog | 5 +++--
debian/patches/gcc46 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 57 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index fed51cc..d01a376 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
libss7 (1.0.2-3) UNRELEASED; urgency=low
- * A @debian.org address.
+ * A @debian.org address.
+ * Patch gcc46: Fix the gcc 4.6 warnings (Closes: 625375).
- -- Tzafrir Cohen <tzafrir at debian.org> Fri, 25 Nov 2011 09:55:00 +0200
+ -- Tzafrir Cohen <tzafrir at debian.org> Fri, 25 Nov 2011 09:59:32 +0200
libss7 (1.0.2-2) UNRELEASED; urgency=low
diff --git a/debian/patches/gcc46 b/debian/patches/gcc46
new file mode 100644
index 0000000..e56b107
--- /dev/null
+++ b/debian/patches/gcc46
@@ -0,0 +1,53 @@
+Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
+Description: Remove assigned but unused code warningsof GCC 4.6
+Bug: https://issues.asterisk.org/jira/browse/SS7-54
+
+--- a/mtp3.c
++++ b/mtp3.c
+@@ -455,12 +455,10 @@ fail:
+ int mtp3_transmit(struct ss7 *ss7, unsigned char userpart, unsigned char sls, struct ss7_msg *m)
+ {
+ unsigned char *sio;
+- unsigned char *sif;
+ struct mtp2 *winner;
+ int priority = 3;
+
+ sio = m->buf + MTP2_SIZE;
+- sif = sio + 1;
+
+ winner = sls_to_link(ss7, sls);
+
+--- a/isup.c
++++ b/isup.c
+@@ -2274,12 +2274,9 @@ static int dump_parm(struct ss7 *ss7, in
+ int x;
+ int len = 0;
+ int totalparms = sizeof(parms)/sizeof(struct parm_func);
+- char *parmname = "Unknown Parm";
+
+ for (x = 0; x < totalparms; x++) {
+ if (parms[x].parm == parm) {
+- if (parms[x].name)
+- parmname = parms[x].name;
+
+ ss7_message(ss7, "\t\t%s:\n", parms[x].name ? parms[x].name : "Unknown");
+
+--- a/parser_debug.c
++++ b/parser_debug.c
+@@ -45,7 +45,6 @@ int main(int argc, char **argv)
+ unsigned int tmp;
+ int ss7type;
+ int res = 0, i = 0, size;
+- ss7_event *e;
+
+ if (argc != 3)
+ return -1;
+@@ -81,7 +80,7 @@ int main(int argc, char **argv)
+
+ mtp2_receive(ss7->links[0], mybuf, size);
+
+- e = ss7_check_event(ss7);
++ ss7_check_event(ss7);
+
+ return 0;
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 32d09d8..a362771 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
ldconfig
+gcc46
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/libss7.git
More information about the Pkg-voip-commits
mailing list