[avr-libc-dev] [bug #22163] Everytime ATOMIC_BLOCK(ATOMIC_RESTORESTATE) compiler generates warning - unused variable 'sreg_save'

2010-06-09 Thread Joerg Wunsch

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

Severity:  3 - Normal = 4 - Important  
Priority: 3 - Low = 7 - High   


___

Reply to this item at:

  http://savannah.nongnu.org/bugs/?22163

___
  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


[avr-libc-dev] [bug #22163] Everytime ATOMIC_BLOCK(ATOMIC_RESTORESTATE) compiler generates warning - unused variable 'sreg_save'

2008-08-10 Thread Eric Weddington

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

Priority:  5 - Normal = 3 - Low
 Release:None = Any


___

Reply to this item at:

  http://savannah.nongnu.org/bugs/?22163

___
  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


[avr-libc-dev] [bug #22163] Everytime ATOMIC_BLOCK(ATOMIC_RESTORESTATE) compiler generates warning - unused variable 'sreg_save'

2008-01-30 Thread Eric Weddington

Follow-up Comment #1, bug #22163 (project avr-libc):

Tomasz,
Could you please post a small test case that gives this warning?

___

Reply to this item at:

  http://savannah.nongnu.org/bugs/?22163

___
  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


[avr-libc-dev] [bug #22163] Everytime ATOMIC_BLOCK(ATOMIC_RESTORESTATE) compiler generates warning - unused variable 'sreg_save'

2008-01-30 Thread Lars Jonsson

Follow-up Comment #2, bug #22163 (project avr-libc):

I have not seen this warning despite having used this macro in several
projects. Are you using C++ Tomasz (I only have C projects)?

___

Reply to this item at:

  http://savannah.nongnu.org/bugs/?22163

___
  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


[avr-libc-dev] [bug #22163] Everytime ATOMIC_BLOCK(ATOMIC_RESTORESTATE) compiler generates warning - unused variable 'sreg_save'

2008-01-30 Thread Tomasz Francuz

Follow-up Comment #3, bug #22163 (project avr-libc):

Sorry, but mistake I didn't mention that I'm using avr-g++ compiler. When
using avr-gcc everything is working perfectly, but in g++ the following code
produces warning:
#include util/atomic.h

int main()
{
 volatile int b,a;
 a=0;
 b=0;
 ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
  {
   if(b==0) a++;
  } 
}

I don't know if you consider it as a bug, but it would be great if
ATOMIC_BLOCK could be used in c++.

___

Reply to this item at:

  http://savannah.nongnu.org/bugs/?22163

___
  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