Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Small syntax error in fmgr.h


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: Martin Pitt <mpitt(at)debian(dot)org>
  • Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
  • Subject: Re: Small syntax error in fmgr.h
  • Date: Thu, 29 Oct 2009 10:36:25 -0400
  • Message-id: <5345.1256826985@sss.pgh.pa.us> <text/plain>

Martin Pitt <mpitt(at)debian(dot)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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group