avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] compiler warning help


From: Adib Taraben
Subject: Re: [avr-gcc-list] compiler warning help
Date: Wed, 31 Mar 2004 21:24:19 +0100
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)

<x-flowed>
try

extern void func(void);

Adib.

František Burian wrote:

Hi,

 I am the same problem, but the line
<source>:<line>: warning: function declaration isn't a prototype
is repeated many times. I have included all of required include's.

 What is definition of this error (to solve the problem).

 My Example:
 -----------

 a.h:

void func(void);
void f2(void);

 a.c:

#include <avr/signal.h>
#include <stdio.h>
#include "a.h"

 SIGNAL(SIG_ADC)            <--- warning: function declaration isn't a prototype
 {
    // something code goes here
 }

 void func(void)            <--- warning: function declaration isn't a prototype
 {
    // something code goes here
 }

 void func(void)            <--- warning: function declaration isn't a prototype
 {
    // something code goes here
 }


 I don't know what is reason, i declared prototype in a.h and
therefore avr-gcc can have informations about type, parameters etc. of
function.



_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list

</x-flowed>

reply via email to

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