From: batt Date: Wed, 2 Sep 2009 18:23:55 +0000 (+0000) Subject: Better warning handling, without the need of that awful check. X-Git-Tag: 2.2.0~97 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=16f5f1e3b80a45b38fcd6d1751ab82606976fe2e;p=bertos.git Better warning handling, without the need of that awful check. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2871 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/ser_avr.c b/bertos/cpu/avr/drv/ser_avr.c index 746bb527..805c0a66 100644 --- a/bertos/cpu/avr/drv/ser_avr.c +++ b/bertos/cpu/avr/drv/ser_avr.c @@ -454,9 +454,7 @@ static void spi_init(UNUSED_ARG(struct SerialHardware *, _hw), UNUSED_ARG(struct * - as input but tied high forever! * This driver set the pin as output. */ - #if !(ARCH & ARCH_NIGHTTEST) - #warning SPI SS pin set as output for proper operation, check schematics for possible conflicts. - #endif + #warning FIXME:SPI SS pin set as output for proper operation, check schematics for possible conflicts. ATOMIC(SPI_DDR |= BV(SPI_SS_BIT)); ATOMIC(SPI_DDR &= ~BV(SPI_MISO_BIT)); diff --git a/bertos/mware/formatwr.c b/bertos/mware/formatwr.c index 133a1932..3f11522e 100644 --- a/bertos/mware/formatwr.c +++ b/bertos/mware/formatwr.c @@ -108,9 +108,7 @@ /*bernie: save some memory, who cares about floats with lots of decimals? */ #define FRMWRI_BUFSIZE 134 - #if !(ARCH & ARCH_NIGHTTEST) - #warning 134 is too much, the code must be fixed to have a lower precision limit - #endif + #warning FIXME:134 is too much, the code must be fixed to have a lower precision limit #else /* * Conservative estimate. Should be (probably) 12 (which is the size necessary