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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: configure error when CFLAGS='-Wall -Werror
Дата
Msg-id 516186.1718939915@sss.pgh.pa.us
обсуждение исходный текст
Ответ на configure error when CFLAGS='-Wall -Werror  (Andy Fan <zhihuifan1213@163.com>)
Список 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 по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: minor doc issue in 9.16.2.1.1. Boolean Predicate Check Expressions
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Add pg_get_acl() function get the ACL for a database object