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

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