| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | depesz(at)depesz(dot)com |
| Cc: | PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Warning while compiling 19beta1 |
| Date: | 2026-06-04 15:11:31 |
| Message-ID: | 3277299.1780585891@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
I wrote:
> hubert depesz lubaczewski <depesz(at)depesz(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | hubert depesz lubaczewski | 2026-06-04 15:12:21 | Re: Warning while compiling 19beta1 |
| Previous Message | PG Bug reporting form | 2026-06-04 14:55:31 | BUG #19509: Typo in 19 beta release notes (debug_print_parse) |