changeset 3249:6e9f1cd4ed38

Fix compiler warning about variable set but not used. [ Bugzilla 1001865 ]
author vae
date Sat, 15 Jun 2013 20:22:36 +0000
parents 04f96179ad68
children 283b2c38b413
files packages/hal/common/current/ChangeLog packages/hal/common/current/tests/cache.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/common/current/ChangeLog
+++ b/packages/hal/common/current/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-13  Ilija Kocho <ilijak@siva.com.mk>
+
+	* tests/cache.c : Fix compiler warning about variable set but not used.
+	[ Bugzilla 1001865 ]
+
 2012-04-25  Ilija Kocho <ilijak@siva.com.mk>
 
 	* include/hal_stub.h, src/hal_stub.c, src/thread-packets.c:
--- a/packages/hal/common/current/tests/cache.c
+++ b/packages/hal/common/current/tests/cache.c
@@ -96,7 +96,7 @@ volatile char m[(HAL_DCACHE_SIZE/HAL_DCA
 static void time0(register cyg_uint32 stride)
 {
     register cyg_uint32 j,k;
-    register char c;
+    register char c CYGBLD_ATTRIB_UNUSED;
 
     diag_printf("stride=%d\n", stride);