Commit 0e699286 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Coerce type of NULL pointer return to suppress gcc compiler warnings.

parent e00f0ea3
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.26 1997/09/18 20:19:36 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.27 1997/09/24 17:44:24 thomas Exp $
* *
* NOTES * NOTES
* The old interface functions have been converted to macros * The old interface functions have been converted to macros
...@@ -424,7 +424,7 @@ heap_getsysattr(HeapTuple tup, Buffer b, int attnum) ...@@ -424,7 +424,7 @@ heap_getsysattr(HeapTuple tup, Buffer b, int attnum)
default: default:
elog(WARN, "heap_getsysattr: undefined attnum %d", attnum); elog(WARN, "heap_getsysattr: undefined attnum %d", attnum);
} }
return (NULL); return ((Datum) NULL);
} }
/* ---------------- /* ----------------
...@@ -517,7 +517,7 @@ fastgetattr(HeapTuple tup, ...@@ -517,7 +517,7 @@ fastgetattr(HeapTuple tup,
{ {
if (isnull) if (isnull)
*isnull = true; *isnull = true;
return NULL; return (Datum) NULL;
} }
/* ---------------- /* ----------------
......
...@@ -437,7 +437,7 @@ SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool * isnull) ...@@ -437,7 +437,7 @@ SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool * isnull)
*isnull = true; *isnull = true;
SPI_result = 0; SPI_result = 0;
if (tuple->t_natts < fnumber || fnumber <= 0) if (tuple->t_natts < fnumber || fnumber <= 0)
return (NULL); return ((Datum) NULL);
val = heap_getattr(tuple, InvalidBuffer, fnumber, tupdesc, isnull); val = heap_getattr(tuple, InvalidBuffer, fnumber, tupdesc, isnull);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment