- Архив списков рассылки pgsql-hackers

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема
Дата
Msg-id CAJGNTeM9YtRFpQYGUp208=noz60SW423co3+PPTyDmYhn0WniQ@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

Compiling with CFLAGS="-ggdb -Og -g3 -fno-omit-frame-pointer" as
recommended in https://wiki.postgresql.org/wiki/Developer_FAQ#Compile-time

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;
                          ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
"""

Can we please, initialize tapeblocks variable in
ltsConcatWorkerTapes() function?

--
Jaime Casanova                      www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Missing comment edit
Следующее
От: Jaime Casanova
Дата:
Сообщение: tapeblocks is uninitialized in logtape.c