Blame SOURCES/open-lldp-v1.0.1-19-nltest-build-error.patch

436175
From 53ebbfd6dd8cf475884fd523207e354696a0670d Mon Sep 17 00:00:00 2001
436175
From: Chris Leech <cleech@redhat.com>
436175
Date: Fri, 30 Jan 2015 08:21:42 +0000
436175
Subject: [PATCH] nltest build error
436175
MIME-Version: 1.0
436175
Content-Type: text/plain; charset=UTF-8
436175
Content-Transfer-Encoding: 8bit
436175
436175
test/nltest.c: In function ‘set_hw_bcn’:
436175
test/nltest.c:994:38: error: iteration 8u invokes undefined behavior
436175
[-Werror=aggressive-loop-optimizations]
436175
    bcn_data->up_settings[i].rp_admin = 1;
436175
                                      ^
436175
test/nltest.c:993:3: note: containing loop
436175
   for (i = 0; i <= 8; i++) {
436175
   ^
436175
cc1: all warnings being treated as errors
436175
436175
Signed-off-by: Chris Leech <cleech@redhat.com>
436175
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
436175
---
436175
 test/nltest.c | 2 +-
436175
 1 file changed, 1 insertion(+), 1 deletion(-)
436175
436175
diff --git a/test/nltest.c b/test/nltest.c
436175
index da05463..cd28977 100644
436175
--- a/test/nltest.c
436175
+++ b/test/nltest.c
436175
@@ -990,7 +990,7 @@ static int set_hw_bcn(char *device_name, bcn_cfg *bcn_data,
436175
 	oper_mode = 1;
436175
 
436175
 	{
436175
-		for (i = 0; i <= 8; i++) {
436175
+		for (i = 0; i < 8; i++) {
436175
 			bcn_data->up_settings[i].rp_admin = 1;
436175
 		}
436175
 		bcn_data->rp_alpha = 0.5;
436175
-- 
436175
2.1.0
436175