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

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

[avr-libc-dev] [bug #28756] Bug in AVR libc 1.6.7 (power.h for 8-bit AVR


From: Joerg Wunsch
Subject: [avr-libc-dev] [bug #28756] Bug in AVR libc 1.6.7 (power.h for 8-bit AVR)
Date: Wed, 03 Feb 2010 08:10:46 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.19) Gecko/20081217 SeaMonkey/1.1.14

Update of bug #28756 (project avr-libc):

                  Status:               Need Info => Confirmed              

    _______________________________________________________

Follow-up Comment #13:

I can now see the problem with that code.  They stupidly
parenthesize the call to clock_prescale_set() within another
macro, like:


#define Set_cpu_prescaler(x) (clock_prescale_set(x))


While this is completely pointless for a function with void
return value (as it could never become part of an arithmetic
expression), it's still legal C code.

I guess the best solution then is to use an inlined function
rather than a macro to implement clock_prescale_set().

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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