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/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev