[packages/iproute2] - with agressive opts: iplink_can.c:116:33: error: 'sp' may be used uninitialized in this function
arekm
arekm at pld-linux.org
Tue Mar 5 22:05:20 CET 2013
commit 0f0fc7df177a097997eb0aead899af4f4e962c3f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Mar 5 22:05:17 2013 +0100
- with agressive opts: iplink_can.c:116:33: error: 'sp' may be used uninitialized in this function
iproute2-build.patch | 11 +++++++++++
iproute2.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/iproute2.spec b/iproute2.spec
index 226eb06..6466d5b 100644
--- a/iproute2.spec
+++ b/iproute2.spec
@@ -32,6 +32,7 @@ Patch12: 001-net-dev-iface-descr-0.1.diff
Patch13: %{name}-q_atm_c.patch
Patch14: %{name}-q_srr.v0.4.patch
Patch15: %{name}-ip_route_get.patch
+Patch16: %{name}-build.patch
URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
BuildRequires: bison
BuildRequires: db-devel
@@ -128,6 +129,7 @@ Dokumentacja do iproute zawiera "howto" oraz przykłady ustawień.
%patch13 -p0
%patch14 -p1
%patch15 -p1
+%patch16 -p1
%build
%{__make} \
diff --git a/iproute2-build.patch b/iproute2-build.patch
new file mode 100644
index 0000000..36452cf
--- /dev/null
+++ b/iproute2-build.patch
@@ -0,0 +1,11 @@
+--- iproute2-3.8.0/ip/iplink_can.c~ 2013-02-21 17:41:20.000000000 +0100
++++ iproute2-3.8.0/ip/iplink_can.c 2013-03-05 22:03:13.578484638 +0100
+@@ -107,7 +107,7 @@
+ if (get_u32(&bt.bitrate, *argv, 0))
+ invarg("invalid \"bitrate\" value\n", *argv);
+ } else if (matches(*argv, "sample-point") == 0) {
+- float sp;
++ float sp = 0;
+
+ NEXT_ARG();
+ if (get_float(&sp, *argv))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/iproute2.git/commitdiff/0f0fc7df177a097997eb0aead899af4f4e962c3f
More information about the pld-cvs-commit
mailing list