Re: configure error when CFLAGS='-Wall -Werror

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andy Fan <zhihuifan1213(at)163(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: configure error when CFLAGS='-Wall -Werror
Date: 2024-06-21 03:18:35
Message-ID: 516186.1718939915@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andy Fan <zhihuifan1213(at)163(dot)com> writes:
> I relies on some compiler's check to reduce some simple coding issues, I
> use clang 18.1.6 for now. however "CFLAGS='-Wall -Werror ' ./configure"
> would fail,

Nope, you cannot do that: -Werror breaks many of configure's tests.
See

https://www.postgresql.org/docs/current/install-make.html#CONFIGURE-ENVVARS

for the standard workaround.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2024-06-21 03:25:06 Re: Add pg_get_acl() function get the ACL for a database object
Previous Message David G. Johnston 2024-06-21 03:11:02 Re: minor doc issue in 9.16.2.1.1. Boolean Predicate Check Expressions