You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/01/22 17:35:49 UTC

[incubator-nuttx] branch master updated: arch/arm/src/stm32/stm32_dac.c: Fix warning (#148)

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 1658d75  arch/arm/src/stm32/stm32_dac.c:  Fix warning (#148)
1658d75 is described below

commit 1658d75005157f0d6be7057e760587628f566507
Author: patacongo <sp...@yahoo.com>
AuthorDate: Wed Jan 22 11:35:38 2020 -0600

    arch/arm/src/stm32/stm32_dac.c:  Fix warning (#148)
    
    Fix warning found in build testing:  "warning:  'dac_interrupt' defined but not used [-Wunused-function].  The compiler is right, dac_interrupt is not used.  It is, apparently, a placeholder for future interrupt support.  Now conditioned out with #if 0 to suppress build test warnings.
    
    Co-authored-by: Gregory Nutt <gn...@nuttx.org>
---
 arch/arm/src/stm32/stm32_dac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/src/stm32/stm32_dac.c b/arch/arm/src/stm32/stm32_dac.c
index 93c992b..46204a8 100644
--- a/arch/arm/src/stm32/stm32_dac.c
+++ b/arch/arm/src/stm32/stm32_dac.c
@@ -584,7 +584,7 @@ static void     tim_modifyreg(FAR struct stm32_chan_s *chan, int offset,
 
 /* Interrupt handler */
 
-#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX)
+#if 0 /* defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX) */
 static int  dac_interrupt(int irq, FAR void *context, FAR void *arg);
 #endif
 
@@ -873,7 +873,7 @@ static void tim_modifyreg(FAR struct stm32_chan_s *chan, int offset,
  *
  ****************************************************************************/
 
-#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX)
+#if 0 /* defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX) */
 static int dac_interrupt(int irq, FAR void *context, FAR void *arg)
 {
 #warning "Missing logic"