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

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

[avr-libc-dev] Re: [bug #29235] power.h - warning: comma at end of enume


From: Joerg Wunsch
Subject: [avr-libc-dev] Re: [bug #29235] power.h - warning: comma at end of enumerator list
Date: Mon, 29 Mar 2010 19:54:46 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

As Eric Weddington wrote:

> First, I don't know if all of avr-libc would pass the pedantic check
> anyway because we use extensions, which is not strict ISO C.

All extensions are supposed to be properly protected (either by
marking them as __extension__, or by using the double-underlined
versions of keywords, as __asm__), so I think "-pedantic"-safety
should really be a goal of avr-libc.

I agree that we might only want to maintain warning-free compilation
for -std=c99 or -std=gnu99.  There are pieces of code already that
don't even work without it (like, <util/atomic.h>).  If it still works
with -std=c89 or -std=gnu89 (which is currently still GCC's default),
it's fine, if it doesn't, we don't care much.

After all, the current ISO C standard did pass its 10th birthday
already, so it's already a teenager now. ;-)

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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