Re: pgsql: Move fsync routines of initdb into src/common/

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Move fsync routines of initdb into src/common/
Дата
Msg-id 19159.1475173805@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Move fsync routines of initdb into src/common/  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-committers
Peter Eisentraut <peter_e@gmx.net> writes:
> Move fsync routines of initdb into src/common/

This patch is giving me compiler warnings.

file_utils.c: In function 'fsync_pgdata':
file_utils.c:86: warning: passing argument 2 of 'walkdir' from incompatible pointer type
file_utils.c:36: note: expected 'int (*)(const char *, bool,  const char *)' but argument is of type 'void (*)(const
char*, bool,  const char *)' 
file_utils.c:88: warning: passing argument 2 of 'walkdir' from incompatible pointer type
file_utils.c:36: note: expected 'int (*)(const char *, bool,  const char *)' but argument is of type 'void (*)(const
char*, bool,  const char *)' 
file_utils.c:89: warning: passing argument 2 of 'walkdir' from incompatible pointer type
file_utils.c:36: note: expected 'int (*)(const char *, bool,  const char *)' but argument is of type 'void (*)(const
char*, bool,  const char *)' 

gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Allow contrib/file_fdw to read from a program, like COPY FROM PR
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Fix compiler warnings