Blame SOURCES/0141-tc_util-Silence-spurious-compiler-warning.patch
|
|
99be8f |
From 774b1c35d4515434e979d9090960ad3293bfe12e Mon Sep 17 00:00:00 2001
|
|
|
99be8f |
From: Andrea Claudi <aclaudi@redhat.com>
|
|
|
99be8f |
Date: Wed, 5 Jun 2019 13:18:27 +0200
|
|
|
99be8f |
Subject: [PATCH] tc_util: Silence spurious compiler warning
|
|
|
99be8f |
|
|
|
99be8f |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1714660
|
|
|
99be8f |
Upstream Status: iproute2.git commit 66942e522e54d
|
|
|
99be8f |
|
|
|
99be8f |
commit 66942e522e54d9f96153590b7c1c7830b8f73f5c
|
|
|
99be8f |
Author: Phil Sutter <phil@nwl.cc>
|
|
|
99be8f |
Date: Wed Nov 15 15:01:31 2017 +0100
|
|
|
99be8f |
|
|
|
99be8f |
tc_util: Silence spurious compiler warning
|
|
|
99be8f |
|
|
|
99be8f |
GCC version 7.2.1 complains that 'result1' may be used uninitialized in
|
|
|
99be8f |
parse_action_control_slash_spaces(). This should not be possible in
|
|
|
99be8f |
practice, so the actual value 'result1' is initialized with does not
|
|
|
99be8f |
matter.
|
|
|
99be8f |
|
|
|
99be8f |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
99be8f |
---
|
|
|
99be8f |
tc/tc_util.c | 2 +-
|
|
|
99be8f |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
99be8f |
|
|
|
99be8f |
diff --git a/tc/tc_util.c b/tc/tc_util.c
|
|
|
99be8f |
index 65695ea592ed8..e115e5a70e3a1 100644
|
|
|
99be8f |
--- a/tc/tc_util.c
|
|
|
99be8f |
+++ b/tc/tc_util.c
|
|
|
99be8f |
@@ -556,7 +556,7 @@ static int parse_action_control_slash_spaces(int *argc_p, char ***argv_p,
|
|
|
99be8f |
{
|
|
|
99be8f |
int argc = *argc_p;
|
|
|
99be8f |
char **argv = *argv_p;
|
|
|
99be8f |
- int result1, result2;
|
|
|
99be8f |
+ int result1 = -1, result2;
|
|
|
99be8f |
int *result_p = &result1;
|
|
|
99be8f |
int ok = 0;
|
|
|
99be8f |
int ret;
|
|
|
99be8f |
--
|
|
|
d30c09 |
2.21.0
|
|
|
99be8f |
|