From be09a87c0ea564f14afaa0c9ee13354ec9d910d4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 3 Jul 2015 14:38:33 -0600 Subject: [PATCH] SST25: Eliminate some warnings --- configs | 2 +- drivers/mtd/sst25.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configs b/configs index a78d478e6f9..1cfdd63f75a 160000 --- a/configs +++ b/configs @@ -1 +1 @@ -Subproject commit a78d478e6f91e08438cb19538797ae5a573da96c +Subproject commit 1cfdd63f75a2a6aac0dfa0080813fbe644b7919f diff --git a/drivers/mtd/sst25.c b/drivers/mtd/sst25.c index 324cbf363fc..c4c49c7ee7b 100644 --- a/drivers/mtd/sst25.c +++ b/drivers/mtd/sst25.c @@ -584,6 +584,7 @@ static void sst25_byteread(FAR struct sst25_dev_s *priv, FAR uint8_t *buffer, status = sst25_waitwritecomplete(priv); DEBUGASSERT((status & (SST25_SR_WEL|SST25_SR_BP_MASK|SST25_SR_AAI)) == 0); + UNUSED(status); /* Select this FLASH part */ @@ -723,6 +724,7 @@ static void sst25_wordwrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer, status = sst25_waitwritecomplete(priv); DEBUGASSERT((status & (SST25_SR_WEL|SST25_SR_BP_MASK|SST25_SR_AAI)) == 0); + UNUSED(status); /* Enable write access to the FLASH */ @@ -754,6 +756,7 @@ static void sst25_wordwrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer, status = sst25_waitwritecomplete(priv); DEBUGASSERT((status & (SST25_SR_WEL|SST25_SR_BP_MASK|SST25_SR_AAI)) == (SST25_SR_WEL|SST25_SR_AAI)); + UNUSED(status); /* Decrement the word count and advance the write position */ @@ -791,6 +794,7 @@ static void sst25_wordwrite(struct sst25_dev_s *priv, FAR const uint8_t *buffer, status = sst25_waitwritecomplete(priv); DEBUGASSERT((status & (SST25_SR_WEL|SST25_SR_BP_MASK|SST25_SR_AAI)) == (SST25_SR_WEL|SST25_SR_AAI)); + UNUSED(status); /* Decrement the word count and advance the write position */