Re: CompilerWarnings task does not catch C++ warnings

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: CompilerWarnings task does not catch C++ warnings
Дата
Msg-id f6fcffc6-aded-453f-baab-7beb9e1deb1a@eisentraut.org
обсуждение исходный текст
Ответ на Re: CompilerWarnings task does not catch C++ warnings  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 18.06.24 16:08, Tom Lane wrote:
> Peter Eisentraut <peter@eisentraut.org> writes:
>> The CompilerWarnings task on Cirrus CI does not catch warnings in C++
>> code.  It tries to make warnings fatal by passing COPT='-Werror', but
>> that does not apply to C++ compilations.
>> I suggest that we just add COPT to CXXFLAGS as well.  I think passing
>> -Werror is just about the only reasonable use of COPT nowadays, so
>> making that more robust seems useful.  I don't think there is a need for
>> a separate make variable for C++ here.
> 
> +1, but what about the meson side of things?

If you use meson {setup|configure} --werror, that would affect both C 
and C++ compilers.




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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: may be a buffer overflow problem
Следующее
От: Ashutosh Sharma
Дата:
Сообщение: Re: Truncation of mapped catalogs (whether local or shared) leads to server crash