]> granicus.if.org Git - postgresql/commitdiff
Coerce type of NULL pointer return to suppress gcc compiler warnings.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 24 Sep 1997 17:45:21 +0000 (17:45 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 24 Sep 1997 17:45:21 +0000 (17:45 +0000)
src/backend/access/common/heaptuple.c
src/backend/executor/spi.c

index 78f92190a2f522e4130078585a963e89345cf2a6..f124e564673cbacf5e14197b72fa3a6ea8657b6e 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * 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
  *       The old interface functions have been converted to macros
@@ -424,7 +424,7 @@ heap_getsysattr(HeapTuple tup, Buffer b, int attnum)
                default:
                        elog(WARN, "heap_getsysattr: undefined attnum %d", attnum);
        }
-       return (NULL);
+       return ((Datum) NULL);
 }
 
 /* ----------------
@@ -517,7 +517,7 @@ fastgetattr(HeapTuple tup,
                {
                        if (isnull)
                                *isnull = true;
-                       return NULL;
+                       return (Datum) NULL;
                }
 
                /* ----------------
index 12a511be27e5565f46e7dde285ac6b55594c7b1c..6a3d1485158fabe0aedd9077a2bc74a7efb69ed4 100644 (file)
@@ -437,7 +437,7 @@ SPI_getbinval(HeapTuple tuple, TupleDesc tupdesc, int fnumber, bool * isnull)
        *isnull = true;
        SPI_result = 0;
        if (tuple->t_natts < fnumber || fnumber <= 0)
-               return (NULL);
+               return ((Datum) NULL);
 
        val = heap_getattr(tuple, InvalidBuffer, fnumber, tupdesc, isnull);