diff packages/kernel/current/tests/kexcept1.c @ 3132:80f232caf539

* tests/except1.cxx (cause_exception): Fix compiler warning about variable that is set but not used. Enter CYGBLD_ATTRIB_UNUSED. * tests/kexcept1.c (cause_exception): Ditto. * tests/kmbox1.c (entry1): Fix compiler warning about variable that is set but not used. Use by a conditional CYGMTH_MBOX_PUT_CAN_WAIT. * tests/mbox1.cxx (entry1): Ditto. * tests/tm_basic.cxx (run_thread_tests, run_mbox_tests, run_flag_tests): Remove unused variables.
author sergeig
date Tue, 20 Mar 2012 15:39:58 +0000
parents 74dbf4c3f2e1
children
line wrap: on
line diff
--- a/packages/kernel/current/tests/kexcept1.c
+++ b/packages/kernel/current/tests/kexcept1.c
@@ -131,7 +131,7 @@ cause_fpe(int num)
 
 void cause_exception(void)
 {
-    int x;
+    int x CYGBLD_ATTRIB_UNUSED;
     unsigned int p=0;
 
     // First try for an address exception (unaligned access exception