Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wV9jP-001jhi-0M for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Jun 2026 15:11:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wV9jN-007Aac-1s for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Jun 2026 15:11:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wV9jN-007AaO-13 for pgsql-bugs@lists.postgresql.org; Thu, 04 Jun 2026 15:11:37 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wV9jL-00000001G4m-0tWK for pgsql-bugs@lists.postgresql.org; Thu, 04 Jun 2026 15:11:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 654FBVQA3277300; Thu, 4 Jun 2026 11:11:31 -0400 From: Tom Lane To: depesz@depesz.com cc: PostgreSQL mailing lists Subject: Re: Warning while compiling 19beta1 In-reply-to: <3208217.1780584180@sss.pgh.pa.us> References: <3208217.1780584180@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 04 Jun 2026 10:43:00 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3277298.1780585891.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 04 Jun 2026 11:11:31 -0400 Message-ID: <3277299.1780585891@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > hubert depesz lubaczewski writes: >> llvmjit.c: In function =E2=80=98llvm_split_symbol_name=E2=80=99: >> llvmjit.c:1065:27: warning: assignment discards =E2=80=98const=E2=80=99= qualifier from pointer target type [-Wdiscarded-qualifiers] >> 1065 | *funcname =3D 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