Mercurial > nand-ecoscentric
changeset 3178:e8b153151417
Fix compiler warnings about unused variables. [ Bugzilla 1001505 ]
| author | grante |
|---|---|
| date | Tue, 06 Mar 2012 18:56:34 +0000 |
| parents | c1987d8f692a |
| children | 511ef8121ce9 |
| files | packages/kernel/current/ChangeLog packages/kernel/current/src/intr/intr.cxx |
| diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,8 @@ +2012-03-06 Grant Edwards <grant.b.edwards@gmail.com> + + * src/intr/intr.cxx (attach): Fix compiler warning about unused + variable. [ Bugzilla 1001505 ] + 2011-07-09 Ilija Kocho <ilijak@siva.com.mk> * tests/bin_sem2.cxx (PHILOSOPHERS):
--- a/packages/kernel/current/src/intr/intr.cxx +++ b/packages/kernel/current/src/intr/intr.cxx @@ -467,7 +467,7 @@ Cyg_Interrupt::attach(void) if( chain_list[index] == NULL ) { - int in_use; + int in_use CYGBLD_ATTRIB_UNUSED; // First Interrupt on this chain, just assign it and register // the chain_isr with the HAL. @@ -499,8 +499,7 @@ Cyg_Interrupt::attach(void) #else { - int in_use; - + int in_use CYGBLD_ATTRIB_UNUSED; HAL_INTERRUPT_IN_USE( vector, in_use ); CYG_ASSERT( 0 == in_use, "Interrupt vector not free.");
