X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Mon, 25 Feb 2002 08:57:58 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: incorrect args to function In-Reply-To: <20020224195950.21040.00000591@mb-fi.aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 25 Feb 2002, Captainpita wrote: > I have the following messages in the output log when I compile my program, > > DEMO.c: In function `comport_xmit': > DEMO.c:123: too few arguments to function `r232xmit' > DEMO.c:123: void value not ignored as it ought to be > > The name of the "C" program is "DEMO.c" that has the function "comport_xmit" > (defined within "DEMO.c") that calls a the function "r232xmit" that comes from > a library. The function r232xmit has 3 (count'em three) arguments to it, I am > passing 3 arguments to the function, so why do I get these messages? Is it possible that a different prototype of r232xmit is lurking in some header file? Also, what compiler switches, if any, are you using in the compile command?