Re: Warning while compiling 19beta1

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: depesz@depesz.com
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2026-06-04T14:43:00Z
Lists: pgsql-bugs
hubert depesz lubaczewski <depesz@depesz.com> writes:
> When doing so I got:

> 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.
I suppose it's from using a bleeding-edge LLVM version, because most
of them don't show it.  Which LLVM are you actually compiling against?

			regards, tom lane



Commits

  1. Fix another case of indirectly casting away const.

  2. Small terminology fixes in comments