From 28d7408b3fcb3e5c91f0dc83f873c8c7a0bba1e5 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 3 Dec 2018 18:02:03 +0700 Subject: [PATCH] fix compiler warning --- hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h | 2 ++ hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h | 2 ++ hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h | 1 + hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h | 4 ++-- hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h index 3ea66737..ed772bc0 100644 --- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h +++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpio_17xx_40xx.h @@ -63,6 +63,7 @@ typedef struct { /* GPIO_PORT Structure */ */ STATIC INLINE void Chip_GPIO_Init(LPC_GPIO_T *pGPIO) { + (void) pGPIO; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO); } @@ -73,6 +74,7 @@ STATIC INLINE void Chip_GPIO_Init(LPC_GPIO_T *pGPIO) */ STATIC INLINE void Chip_GPIO_DeInit(LPC_GPIO_T *pGPIO) { + (void) pGPIO; Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_GPIO); } diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h index 4f74323c..be42deba 100644 --- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h +++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/gpioint_17xx_40xx.h @@ -79,6 +79,7 @@ typedef enum { */ STATIC INLINE void Chip_GPIOINT_Init(LPC_GPIOINT_T *pGPIOINT) { + (void) pGPIOINT; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO); } @@ -92,6 +93,7 @@ STATIC INLINE void Chip_GPIOINT_Init(LPC_GPIOINT_T *pGPIOINT) */ STATIC INLINE void Chip_GPIOINT_DeInit(LPC_GPIOINT_T *pGPIOINT) { + (void) pGPIOINT; Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_GPIO); } diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h index 8d5f055b..b5a94679 100644 --- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h +++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/iocon_17xx_40xx.h @@ -150,6 +150,7 @@ typedef struct { */ STATIC INLINE void Chip_IOCON_Init(LPC_IOCON_T *pIOCON) { + (void) pIOCON; Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPIO); } diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h index 14c7b605..af89d56b 100644 --- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h +++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/lpc_types.h @@ -82,10 +82,10 @@ typedef enum { } TRANSFER_BLOCK_T; /** Pointer to Function returning Void (any number of parameters) */ -typedef void (*PFV)(); +typedef void (*PFV)(void); /** Pointer to Function returning int32_t (any number of parameters) */ -typedef int32_t (*PFI)(); +typedef int32_t (*PFI)(void); /** * @} diff --git a/hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h b/hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h index b314c9e5..3572a497 100644 --- a/hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h +++ b/hw/mcu/nxp/lpc_chip_175x_6x/inc/wwdt_17xx_40xx.h @@ -101,7 +101,7 @@ void Chip_WWDT_Init(LPC_WWDT_T *pWWDT); * @param pWWDT : The base of WatchDog Timer peripheral on the chip * @return None */ -STATIC INLINE void Chip_WWDT_DeInit(LPC_WWDT_T *pWWDT) {} +STATIC INLINE void Chip_WWDT_DeInit(LPC_WWDT_T *pWWDT) { (void) pWWDT;} /** * @brief Set WDT timeout constant value used for feed