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: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Release: 1.8.0Fixed 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1