diff options
author | Tom Lane | 2002-10-25 22:17:32 +0000 |
---|---|---|
committer | Tom Lane | 2002-10-25 22:17:32 +0000 |
commit | a77b862c091467c1bbac70044fa89793dd1f9ce1 (patch) | |
tree | b3f5a5c78d70b628589f84fb34dfc012ec2fcf6c | |
parent | ba963c651b5940efc8b8c163f2405f9857552b17 (diff) |
Add dummy variable declaration to PG_FUNCTION_INFO_V1() to prevent
'empty declaration' warnings from compilers that care about such things.
Per discussion back before 7.2 release; we didn't do it then because
we'd already missed all the beta cycle ...
-rw-r--r-- | src/include/fmgr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h index 0e58167589a..bbefebc222f 100644 --- a/src/include/fmgr.h +++ b/src/include/fmgr.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: fmgr.h,v 1.25 2002/09/12 00:26:42 momjian Exp $ + * $Id: fmgr.h,v 1.26 2002/10/25 22:17:32 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -282,7 +282,8 @@ CppConcat(pg_finfo_,funcname) (void) \ { \ static Pg_finfo_record my_finfo = { 1 }; \ return &my_finfo; \ -} +} \ +extern int no_such_variable /*------------------------------------------------------------------------- |