epsilon-devel
[Top][All Lists]
Advanced

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

Re: compiling with xlc


From: Luca Saiu
Subject: Re: compiling with xlc
Date: Tue, 02 Mar 2021 23:26:05 +0100
User-agent: Gnus (Gnus v5.13), GNU Emacs 27.0.50, x86_64-pc-linux-gnu

On 2021-03-02 at 23:12 +0100, Bruno Haible wrote:

> Hi Luca,
>
>> > 1506-120 (W) Function cannot return a const qualified type.
>> 
>> I am actually not sure about this one; is it because the returned union
>> has a pointer-to-const member?
>
> It's because the function returns a 'const <some_struct>'. If you change the
> return type to '<some_struct>', the warning goes away.

You are right.  For some reason it has seemed to me that the first of
the three prototypes did not in fact return a const object, but now I
see that they are all similar.

Sorry for the noise.

-- 
Luca Saiu
* My personal web site:  http://ageinghacker.net
* Jitter:                http://ageinghacker.net/projects/jitter
* GNU epsilon:           http://www.gnu.org/software/epsilon

I support everyone's freedom of mocking any opinion or belief, no
matter how deeply held, with open disrespect and the same unrelented
enthusiasm of a toddler who has just learned the word "poo".

Attachment: signature.asc
Description: PGP signature


reply via email to

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