www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/25/01:59:53

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 <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.1020225085620.5689L-100000@is>
MIME-Version: 1.0
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

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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019