Re: Small syntax error in fmgr.h

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Small syntax error in fmgr.h
Дата
Msg-id 5345.1256826985@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Small syntax error in fmgr.h  (Martin Pitt <mpitt@debian.org>)
Список pgsql-bugs
Martin Pitt <mpitt@debian.org> writes:
> https://launchpad.net/bugs/458020 reports a small syntax error in
> ./src/include/fmgr.h:338:

>   extern int no_such_variable

> The trailing semicolon is missing:

This is not a bug.  You are supposed to write a semicolon after the
call of PG_MODULE_MAGIC.  If we put a semicolon into the macro value,
it would break every single correct usage (at least under compilers
that are picky about empty statements outside functions).

The same goes for PG_FUNCTION_INFO_V1.

            regards, tom lane

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

Предыдущее
От: Martin Pitt
Дата:
Сообщение: Small syntax error in fmgr.h
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Small syntax error in fmgr.h