Re: tapeblocks is uninitialized in logtape.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: tapeblocks is uninitialized in logtape.c
Дата
Msg-id 20180214210755.dgjsbah3544y5eld@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: tapeblocks is uninitialized in logtape.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: tapeblocks is uninitialized in logtape.c
Список pgsql-hackers
Tom Lane wrote:

> Actually, on looking closer, it's more likely got something to do with
> whether or not you used --enable-cassert.  If the Assert at the top of
> the function is disabled, then IMO a compiler that failed to complain
> about this coding would be pretty damn broken.

I tried removing the Assert, and my compiler doesn't complain.  I
noticed that the function is static and the only caller has its own
assert about ntapes; yet removing that one doesn't cause a warning
either.  I made the function non-static -- still no warning.

gcc (Debian 6.3.0-18) 6.3.0 20170516

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Nikolay Shaplov
Дата:
Сообщение: Re: [PATCH][PROPOSAL] Add enum releation option type
Следующее
От: Tom Lane
Дата:
Сообщение: Re: tapeblocks is uninitialized in logtape.c