Re: Enable -Wstrict-prototypes and -Wold-style-definition by default

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Enable -Wstrict-prototypes and -Wold-style-definition by default
Дата
Msg-id 1012008.1773862140@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Enable -Wstrict-prototypes and -Wold-style-definition by default  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Список pgsql-hackers
Bertrand Drouvot <bertranddrouvot.pg@gmail.com> writes:
> On Wed, Mar 18, 2026 at 01:03:03PM -0400, Tom Lane wrote:
>> We could plausibly fix this either by
>> 
>> (1) renaming ecpg_init_sqlca's parameter to something else;
>> 
>> (2) ensuring that POSTGRES_ECPG_INTERNAL is defined.  I'd be inclined
>> to make ecpglib_extern.h do that rather than expecting headerscheck
>> to know about it.
>> 
>> Neither of these options are beautiful, but perhaps #1 is slightly
>> less ugly.  Any preferences?

> I'd vote for #1 too, done in the attached.

Agreed and pushed.

            regards, tom lane



В списке pgsql-hackers по дате отправления: