public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: [email protected]
Cc: PostgreSQL mailing lists <[email protected]>
Subject: Re: Warning while compiling 19beta1
Date: Thu, 04 Jun 2026 11:11:31 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
I wrote:
> hubert depesz lubaczewski <[email protected]> writes:
>> llvmjit.c: In function ‘llvm_split_symbol_name’:
>> llvmjit.c:1065:27: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>> 1065 | *funcname = strrchr(name, '.');
>> | ^
> Yeah, some of the buildfarm animals have been showing this for awhile.
Actually, after looking closer, the LLVM version isn't relevant.
What you need is a gcc new enough to know that the result of
strrchr() applied to a const char * should be considered const.
This function is ugly in some other ways too. Will fix.
regards, tom lane
view thread (4+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Warning while compiling 19beta1
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox