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

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

Re: [avr-gcc-list] How to warn if a function called with extra arguments


From: Christian Vogel
Subject: Re: [avr-gcc-list] How to warn if a function called with extra arguments
Date: Mon, 22 Mar 2004 08:41:32 +0100
User-agent: Mutt/1.2.5.1i

Hi Tom,

On Mon, Mar 22, 2004 at 05:53:48PM +1100, Tom Harris wrote:
> Here is an example of code that compiles with no warnings:
(...)
> If I declare f as `f(void)` then the compiler complains about the extra
> argument.

that's the way functions without arguments should be specified in
plain C.

        Chris

-- 
MATH AND ALCOHOL DON'T MIX! Please, don't drink and derive.
Mathematicians Against Drunk Deriving -- http://slashdot.org

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


reply via email to

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