Mercurial > ecos
diff packages/kernel/current/src/intr/intr.cxx @ 3101:e8b153151417
Fix compiler warnings about unused variables. [ Bugzilla 1001505 ]
| author | grante |
|---|---|
| date | Tue, 06 Mar 2012 18:56:34 +0000 |
| parents | 74dbf4c3f2e1 |
| children |
line wrap: on
line diff
--- 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.");
