Re: configure error when CFLAGS='-Wall -Werror - Mailing list pgsql-hackers

From Tom Lane
Subject Re: configure error when CFLAGS='-Wall -Werror
Date
Msg-id 516186.1718939915@sss.pgh.pa.us
Whole thread Raw
In response to configure error when CFLAGS='-Wall -Werror  (Andy Fan <zhihuifan1213@163.com>)
List pgsql-hackers
Andy Fan <zhihuifan1213@163.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



pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: minor doc issue in 9.16.2.1.1. Boolean Predicate Check Expressions
Next
From: Michael Paquier
Date:
Subject: Re: Add pg_get_acl() function get the ACL for a database object