pgsql: Don't initialize TLI variable to -1, as TimeLineID is unsigned.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Don't initialize TLI variable to -1, as TimeLineID is unsigned.
Дата
Msg-id E1Sq77D-0000zp-4q@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Don't initialize TLI variable to -1, as TimeLineID is unsigned.

This was causing a compiler warning with Solaris compiler. Use 0 instead.
The variable is initialized just for the sake of tidyness  and/or debugging,
it's not used for anything before setting it to a real value.

Per report and suggestion from Peter Eisentraut.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2686da9db2aec19763ff2dfe5c034da8fb5eb382

Modified Files
--------------
src/backend/replication/walreceiver.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Print the name of the WAL file containing latest REDO ptr in pg_
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Prevent corner-case core dump in rfree().