Suppress more compiler warnings caused by macro tests.
authorBruce Momjian <bruce@momjian.us>
Mon, 24 Apr 2006 22:24:58 +0000 (22:24 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 24 Apr 2006 22:24:58 +0000 (22:24 +0000)
src/include/access/heapam.h

index 74de1f7724c42a9e568fe4335b4131bda67671bb..fdf2e8d86f5d9caeb13cdc36b6fb178f6e4d5aba 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/access/heapam.h,v 1.109 2006/04/24 22:17:04 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/access/heapam.h,v 1.110 2006/04/24 22:24:58 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -45,7 +45,7 @@
 #define fastgetattr(tup, attnum, tupleDesc, isnull)                    \
 (                                                                  \
    AssertMacro((attnum) > 0),                                      \
-   ((isnull) ? (*(isnull) = false) : (dummyret)NULL),              \
+   (((isnull) != NULL) ? (*(isnull) = false) : (dummyret)NULL),                \
    HeapTupleNoNulls(tup) ?                                         \
    (                                                               \
        (tupleDesc)->attrs[(attnum)-1]->attcacheoff >= 0 ?          \
@@ -61,7 +61,7 @@
    (                                                               \
        att_isnull((attnum)-1, (tup)->t_data->t_bits) ?             \
        (                                                           \
-           ((isnull) ? (*(isnull) = true) : (dummyret)NULL),       \
+           (((isnull) != NULL) ? (*(isnull) = true) : (dummyret)NULL),     \
            (Datum)NULL                                             \
        )                                                           \
        :                                                           \