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