bugAVR C Runtime Library - Bugs: bug #38904, ...


bug #38904: /usr/avr/include/util/delay.h:248:10: note: '__ticks' was declared here

Submitted by:  Jaroslaw Siebert <y0g1>
Submitted on:  Mon 06 May 2013 12:22:16 PM UTC  
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  None Percent Complete:  0%
Assigned to:  None Open/Closed:  Open
Release:  1.8.0 Fixed Release:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 06 May 2013 12:22:16 PM UTC, original submission:

Changes from 2013-05-03 introduce bug in:
With gcc-4.8 I get:
usr/avr/include/util/delay_basic.h:83:2: error: '__ticks' may be used
uninitialized in this function [-Werror=maybe-uninitialized]
_asm_ volatile (
/usr/avr/include/util/delay.h:248:10: note: '__ticks' was declared here
uint8_t __ticks;
lto1: all warnings being treated as errors
make[1]: *** [/tmp/ccVIU3hR.ltrans8.ltrans.o] Błąd 1

Maybe there is an error in /usr/avr/include/util/delay.h ?
_delay_loop_1(__ticks) should be run always or it should be in braces with:
else {
__ticks = (uint8_t)__tmp;

Jaroslaw Siebert <y0g1>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by y0g1 (Submitted the item)



    No changes have been made to this item

    Back to the top

    Powered by Savane 3.3