Re: Warning while compiling 19beta1 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Warning while compiling 19beta1
Date
Msg-id 3277299.1780585891@sss.pgh.pa.us
Whole thread
List pgsql-bugs
I wrote:
> hubert depesz lubaczewski <depesz@depesz.com> 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



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #19509: Typo in 19 beta release notes (debug_print_parse)
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: Warning while compiling 19beta1