avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #19009] Make <util/delay.h> issue a warning when opt


From: Joerg Wunsch
Subject: [avr-libc-dev] [bug #19009] Make <util/delay.h> issue a warning when optimizations are turned off
Date: Fri, 09 Feb 2007 10:42:22 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417

Follow-up Comment #1, bug #19009 (project avr-libc):

It might be worth considering whether throwing possible
unfounded warnings (about F_CPU and/or missing optimization)
to those people could be avoided who are not interested in the
_delay_us() and _delay_ms() functions at all but only in
_delay_loop_1() and _delay_loop_2().  These two functions have
no special requirements (like optimization).

One option for this is to completely disable _delay_ms() and
_delay_us() (including their checks for F_CPU and __OPTIMIZE__)
based on the user predefining a macro, say _NO_DELAY_US_DELAY_MS
or such before including <util/delay.h>.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19009>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]