Silence compiler warnings with Python 3.9

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Silence compiler warnings with Python 3.9
Дата
Msg-id 465ed5ac-9b08-53e9-3654-7d057ee1e468@2ndquadrant.com
обсуждение исходный текст
Ответы Re: Silence compiler warnings with Python 3.9  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Starting with Python 3.9, the Python headers contain inline functions 
that fall afoul of our -Wdeclaration-after-statement coding style.  In 
order to silence those warnings, I've added some GCC-specific 
contortions to disable that warning for Python.h only.  Clang doesn't 
appear to warn about this at all; maybe it recognizes that this is an 
external header file.  We could also write a configure check for this if 
we want to be more flexible.

(Attempts to convince upstream to change the coding style were 
unsuccessful (https://bugs.python.org/issue39615).)

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: Minor issues in .pgpass
Следующее
От: David Steele
Дата:
Сообщение: Re: Psql patch to show access methods info