Fix warnings found in build testing.

This commit is contained in:
Gregory Nutt 2019-07-28 17:50:57 -06:00
parent 55ec857f6f
commit e0f1469526
2 changed files with 7 additions and 0 deletions

View File

@ -984,9 +984,11 @@ static void dac_txint(FAR struct dac_dev_s *dev, bool enable)
*
****************************************************************************/
#ifdef HAVE_DMA
static void dac_dmatxcallback(DMA_HANDLE handle, uint8_t isr, FAR void *arg)
{
}
#endif
/****************************************************************************
* Name: dac_send
@ -1114,6 +1116,7 @@ static int dac_ioctl(FAR struct dac_dev_s *dev, int cmd, unsigned long arg)
}
}
UNUSED(chan);
return ret;
}

View File

@ -233,7 +233,9 @@ static void mx25rxx_write_enable(FAR struct mx25rxx_dev_s *dev, bool enable);
static int mx25rxx_write_page(struct mx25rxx_dev_s *priv,
FAR const uint8_t *buffer, off_t address, size_t buflen);
static int mx25rxx_erase_sector(struct mx25rxx_dev_s *priv, off_t sector);
#if 0 /* FIXME: Not used */
static int mx25rxx_erase_block(struct mx25rxx_dev_s *priv, off_t block);
#endif
static int mx25rxx_erase_chip(struct mx25rxx_dev_s *priv);
#ifdef CONFIG_MX25RXX_SECTOR512
@ -460,6 +462,7 @@ int mx25rxx_erase_sector(struct mx25rxx_dev_s *priv, off_t sector)
return OK;
}
#if 0 /* FIXME: Not used */
int mx25rxx_erase_block(struct mx25rxx_dev_s *priv, off_t block)
{
uint8_t status;
@ -483,6 +486,7 @@ int mx25rxx_erase_block(struct mx25rxx_dev_s *priv, off_t block)
return OK;
}
#endif
int mx25rxx_erase_chip(struct mx25rxx_dev_s *priv)
{