Re: tapeblocks is uninitialized in logtape.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tapeblocks is uninitialized in logtape.c
Дата
Msg-id 4628.1518581427@sss.pgh.pa.us
обсуждение исходный текст
Ответ на tapeblocks is uninitialized in logtape.c  (Jaime Casanova <jaime.casanova@2ndquadrant.com>)
Ответы Re: tapeblocks is uninitialized in logtape.c
Re: tapeblocks is uninitialized in logtape.c
Re: tapeblocks is uninitialized in logtape.c
Список pgsql-hackers
Jaime Casanova <jaime.casanova@2ndquadrant.com> writes:
>> My compiler gives me this message
>> logtape.c: In function ‘ltsConcatWorkerTapes’:
>> logtape.c:462:48: warning: ‘tapeblocks’ may be used uninitialized in
>> this function [-Wmaybe-uninitialized]
>> lts->nBlocksAllocated = lt->offsetBlockNumber + tapeblocks;

FWIW, I'm not seeing that.  What compiler are you using exactly?

(There are one or two other places where I see "may be used uninitialized"
complaints from certain older gcc versions.  Not sure how excited we
should be about removing such warnings.)

            regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: unique indexes on partitioned tables
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: TODO item: WAL replay of CREATE TABLESPACE with differingdirectory structure