delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/18/17:30:13.1

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: err
Date: Sun, 18 Jun 2000 21:56:34 +0100
Organization: Customer of Planet Online
Lines: 19
Message-ID: <394D3782.F23E5A3A@phekda.freeserve.co.uk>
References: <394D23E1 DOT E8ECF81A AT ne DOT infi DOT net>
NNTP-Posting-Host: modem-245.fluorine.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg2.svr.pol.co.uk 961362616 26044 62.136.8.245 (18 Jun 2000 21:10:16 GMT)
NNTP-Posting-Date: 18 Jun 2000 21:10:16 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

Martell wrote:
> passing 'const * char' as argument 5 of 'my_func(short int, short int,
> short int, short int, unsigned char *)' discards qualifiers
> 
> what does this error mean?

It means that the 'const' part of the 'const char *' part is being
discarded within the function. You are also doing a conversion for a char
to an unsigned char. You may not mind the 'const' being ignored, but you
should be careful with the char -> unsigned char conversion (signed vs.
unsigned problems).

Hope this helps, bye,

-- 
Richard Dawe
[ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]

- Raw text -


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