From ff7b9f55410bbfbd017af331d23371ab61b63d5e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 14 Jun 2000 05:24:50 +0000 Subject: I had overlooked the fact that some fmgr-callable functions return void --- ie, they're only called for side-effects. Add a PG_RETURN_VOID() macro and use it where appropriate. This probably doesn't change the machine code by a single bit ... it's just for documentation. --- src/backend/access/rtree/rtproc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/backend/access/rtree/rtproc.c') diff --git a/src/backend/access/rtree/rtproc.c b/src/backend/access/rtree/rtproc.c index df410045c2d..f69e9977332 100644 --- a/src/backend/access/rtree/rtproc.c +++ b/src/backend/access/rtree/rtproc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.26 2000/06/13 07:34:49 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/rtree/Attic/rtproc.c,v 1.27 2000/06/14 05:24:43 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -18,8 +18,7 @@ #include "utils/builtins.h" -BOX - * +BOX * rt_box_union(BOX *a, BOX *b) { BOX *n; @@ -123,7 +122,7 @@ rt_poly_size(PG_FUNCTION_ARGS) *size = (float) (xdim * ydim); } - PG_RETURN_POINTER(NULL); /* no real return value */ + PG_RETURN_VOID(); } POLYGON * -- cgit v1.2.3