Compiling warnings on old GCC

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Compiling warnings on old GCC
Дата
Msg-id CAMbWs49XuQiUHcydQrd3JoMSb+nDE23io4gAhy9Ybqk7tvG5KA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Compiling warnings on old GCC  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
I came across the following compiling warnings on GCC (Red Hat 4.8.5-44)
4.8.5 with 'CFLAGS=-Og'

be-fsstubs.c: In function ‘be_lo_export’:
be-fsstubs.c:537:24: warning: ‘fd’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (CloseTransientFile(fd) != 0)
                        ^
In file included from trigger.c:14:0:
trigger.c: In function ‘ExecCallTriggerFunc’:
../../../src/include/postgres.h:314:2: warning: ‘result’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  return (Pointer) X;
  ^
trigger.c:2316:9: note: ‘result’ was declared here
  Datum  result;
         ^

I wonder if this is worth fixing, maybe by a trivial patch like
attached.

Thanks
Richard
Вложения

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

Предыдущее
От: torikoshia
Дата:
Сообщение: Re: Add new option 'all' to pg_stat_reset_shared()
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Add new option 'all' to pg_stat_reset_shared()