Package: avr-libc
Version: 1.8.0-2
Severity: normal

Hello,

the header file pgmspace.h uses the inline-attribute.
This attribute is not part of ANSI C.

My programs are compiled with the option -ansi.
Here is a minimal test program:

> #include <avr/io.h>
> #include <avr/pgmspace.h>
> 
> int main (void)
> {
>       while (1);
>       return (0);
> }

Please compile this with:
$ avr-gcc -mmcu=atmega644p -ansi <file>

Compilation aborts because of the non-ansi include attribute in pgmspace.h

In GCC manual:
there is the predefined macro __STRICT_ANSI__ available, if parameter
-ansi is used.
Please don't use the inline-attribute in case of __STRICT_ANSI__.

In avr-libc manual:
it is described, that this library has to be an ansi-c library.
This is described in chapter 1.2.

If you need more informations, please let me know.

Best regards
Bernhard



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to