forked from Imagelibrary/rtems
basdefs.h: Add and use RTEMS_UNUSED
This commit is contained in:
@@ -1127,7 +1127,7 @@ static uint32_t lpc_eth_mdio_read_anlpar(int phy)
|
||||
|
||||
static int lpc_eth_mdio_read(
|
||||
int phy,
|
||||
void *arg __attribute__((unused)),
|
||||
void *arg RTEMS_UNUSED,
|
||||
unsigned reg,
|
||||
uint32_t *val
|
||||
)
|
||||
@@ -1152,7 +1152,7 @@ static int lpc_eth_mdio_read(
|
||||
|
||||
static int lpc_eth_mdio_write(
|
||||
int phy,
|
||||
void *arg __attribute__((unused)),
|
||||
void *arg RTEMS_UNUSED,
|
||||
unsigned reg,
|
||||
uint32_t val
|
||||
)
|
||||
@@ -1811,7 +1811,7 @@ cleanup:
|
||||
}
|
||||
|
||||
static int lpc_eth_detach(
|
||||
struct rtems_bsdnet_ifconfig *config __attribute__((unused))
|
||||
struct rtems_bsdnet_ifconfig *config RTEMS_UNUSED
|
||||
)
|
||||
{
|
||||
/* FIXME: Detach the interface from the upper layers? */
|
||||
|
||||
@@ -277,7 +277,7 @@ fb_cirrus_write_hdr_reg (
|
||||
const struct cirrus_board_str *fbst,
|
||||
unsigned int val)
|
||||
{
|
||||
volatile unsigned int dummy __attribute__((unused));
|
||||
volatile unsigned int dummy RTEMS_UNUSED;
|
||||
dummy = fb_cirrus_read_reg8(fbst, VGA_DAC_MASK);
|
||||
dummy = fb_cirrus_read_reg8(fbst, VGA_DAC_MASK);
|
||||
dummy = fb_cirrus_read_reg8(fbst, VGA_DAC_MASK);
|
||||
|
||||
@@ -802,7 +802,7 @@ BSP_uart_termios_isr_com2(void *ignored)
|
||||
}
|
||||
|
||||
/* ================= GDB support ===================*/
|
||||
int BSP_uart_dbgisr_com_regsav[4] __attribute__ ((unused));
|
||||
int BSP_uart_dbgisr_com_regsav[4] RTEMS_UNUSED;
|
||||
|
||||
/*
|
||||
* Interrupt service routine for COM1 - all,
|
||||
|
||||
@@ -761,7 +761,7 @@ em_start_locked(struct ifnet *ifp)
|
||||
static void
|
||||
em_start(struct ifnet *ifp)
|
||||
{
|
||||
struct adapter *adapter __attribute__((unused)) = ifp->if_softc;
|
||||
struct adapter *adapter RTEMS_UNUSED = ifp->if_softc;
|
||||
|
||||
EM_LOCK(adapter);
|
||||
em_start_locked(ifp);
|
||||
|
||||
@@ -137,7 +137,7 @@ void BSP_ask_for_reset(void)
|
||||
|
||||
void BSP_panic(char *s)
|
||||
{
|
||||
__attribute__((unused)) rtems_interrupt_level level;
|
||||
RTEMS_UNUSED rtems_interrupt_level level;
|
||||
|
||||
rtems_interrupt_disable(level);
|
||||
|
||||
@@ -149,7 +149,7 @@ void BSP_panic(char *s)
|
||||
|
||||
void _BSP_Fatal_error(unsigned int v)
|
||||
{
|
||||
__attribute__((unused)) rtems_interrupt_level level;
|
||||
RTEMS_UNUSED rtems_interrupt_level level;
|
||||
|
||||
rtems_interrupt_disable(level);
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ void BSP_ask_for_reset(void)
|
||||
|
||||
void BSP_panic(char *s)
|
||||
{
|
||||
__attribute__((unused)) rtems_interrupt_level level;
|
||||
RTEMS_UNUSED rtems_interrupt_level level;
|
||||
|
||||
rtems_interrupt_disable(level);
|
||||
|
||||
@@ -163,7 +163,7 @@ void BSP_panic(char *s)
|
||||
|
||||
void _BSP_Fatal_error(unsigned int v)
|
||||
{
|
||||
__attribute__((unused)) rtems_interrupt_level level;
|
||||
RTEMS_UNUSED rtems_interrupt_level level;
|
||||
|
||||
rtems_interrupt_disable(level);
|
||||
|
||||
|
||||
@@ -434,7 +434,7 @@ static rtems_device_driver grcan_start(struct grcan_priv *pDev)
|
||||
* tmp is set but never used. GCC gives a warning for this
|
||||
* and we need to tell GCC not to complain.
|
||||
*/
|
||||
unsigned int tmp RTEMS_COMPILER_UNUSED_ATTRIBUTE;
|
||||
unsigned int tmp RTEMS_UNUSED;
|
||||
|
||||
IRQ_GLOBAL_PREPARE(oldLevel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user