@@ -1164,10 +1164,7 @@ static void config_io_pin(uint8_t port, uint8_t pin, int dir, int open_drain,
11641164
11651165static void read_io_pin (uint8_t port , uint8_t pin , int * data )
11661166{
1167- uint32_t pin_1bit_mask , tmp_val ;
1168-
1169- /* Calculate pin location for 1bit mask */
1170- pin_1bit_mask = (uint32_t )(1 << (NUM_OF_PINS - (pin + 1 )));
1167+ uint32_t tmp_val ;
11711168
11721169 /* Read the data */
11731170 tmp_val = get32 (GUTS_CPDAT (port ));
@@ -1569,6 +1566,7 @@ static void hal_irq_init(void)
15691566
15701567 set32 (PIC_GCR , PIC_GCR_M ); /* eanble mixed-mode */
15711568 reg = get32 (PIC_GCR ); /* read back */
1569+ (void )reg ;
15721570}
15731571#endif
15741572
@@ -1687,6 +1685,7 @@ int ext_flash_write(uintptr_t address, const uint8_t *data, int len)
16871685 ELBC_FIR_OP (4 , ELBC_FIR_OP_WB ) |
16881686 ELBC_FIR_OP (5 , ELBC_FIR_OP_CW1 ));
16891687#endif
1688+ (void )block_size ; /* not used - shown for reference */
16901689
16911690 /* page write loop */
16921691 while (pos < len ) {
@@ -1719,6 +1718,7 @@ int ext_flash_write(uintptr_t address, const uint8_t *data, int len)
17191718 wolfBoot_printf ("write page %d, col %d, status %x\n" ,
17201719 page , col , status );
17211720#endif
1721+ (void )status ;
17221722 address += page_size - col ;
17231723 pos += page_size - col ;
17241724 data += page_size - col ;
@@ -1859,6 +1859,7 @@ int ext_flash_erase(uintptr_t address, int len)
18591859#ifdef DEBUG_EXT_FLASH
18601860 wolfBoot_printf ("erase page %d, status %x\n" , page , status );
18611861#endif
1862+ (void )status ;
18621863 len -= block_size ;
18631864 }
18641865
0 commit comments