pgsql: Fix some compiler warnings with timestamp parsing in formatting.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Fix some compiler warnings with timestamp parsing in formatting.
Дата
Msg-id E1ieqRw-0004Xq-WA@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix some compiler warnings with timestamp parsing in formatting.c

gcc-7 used with a sufficient optimization level complains about warnings
around do_to_timestamp() regarding the initialization and handling of
some of its variables.  Recent commits 66c74f8 and d589f94 made things
made the interface more confusing, so document which variables are
always expected and initialize properly the optional ones when they are
set.

Author: Andrey Lepikhov, Michael Paquier
Discussion: https://postgr.es/m/a7e28b83-27b1-4e1c-c76b-4268c4b785bc@postgrespro.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c341c7d391e256f80cfbae53b4f55278bffca699

Modified Files
--------------
src/backend/utils/adt/formatting.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix tuple column count in pg_control_init().
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix output of Unicode normalization test