pgsql: Use -Wno-format-truncation and -Wno-stringop-truncation,if avai

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Use -Wno-format-truncation and -Wno-stringop-truncation,if avai
Дата
Msg-id E1fUGxy-000212-A5@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Use -Wno-format-truncation and -Wno-stringop-truncation, if available.

gcc 8 has started emitting some warnings that are largely useless for
our purposes, particularly since they complain about code following
the project-standard coding convention that path names are assumed
to be shorter than MAXPGPATH.  Even if we make the effort to remove
that assumption in some future release, the changes wouldn't get
back-patched.  Hence, just suppress these warnings, on compilers that
have these switches.

Backpatch to all supported branches.

Discussion: https://postgr.es/m/1524563856.26306.9.camel@gunduz.org

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/14b69a53219716c642bc814b94ff2409a2c2c439

Modified Files
--------------
configure    | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 12 +++++++++
2 files changed, 92 insertions(+)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Use snprintf not sprintf in pg_waldump's timestamptz_to_str.
Следующее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: Remove INCLUDE attributes section from docs.