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

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

[avr-libc-dev] [bug #38904] /usr/avr/include/util/delay.h:248:10: note:


From: Jaroslaw Siebert
Subject: [avr-libc-dev] [bug #38904] /usr/avr/include/util/delay.h:248:10: note: '__ticks' was declared here
Date: Mon, 06 May 2013 12:22:17 +0000
User-agent: Mozilla/5.0 (X11) KHTML/4.10.2 (like Gecko) Konqueror/4.10

URL:
  <http://savannah.nongnu.org/bugs/?38904>

                 Summary: /usr/avr/include/util/delay.h:248:10: note:
'__ticks' was declared here
                 Project: AVR C Runtime Library
            Submitted by: y0g1
            Submitted on: Mon 06 May 2013 12:22:16 PM GMT
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.0
           Fixed Release: None

    _______________________________________________________

Details:

Changes from 2013-05-03 introduce bug in:
/usr/avr/include/util/delay.h
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;
    _delay_loop_1(__ticks);
}




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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