aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-04-24 22:24:58 +0000
committerBruce Momjian <bruce@momjian.us>2006-04-24 22:24:58 +0000
commit5bbea03f3b6d9588745122a62070e7316d8b7565 (patch)
treec70c6254da6ddb1745b417c0d48c0f9cfbb38600 /src
parent7384e95b0c013be325888d8954f9edea6ded6c4a (diff)
downloadpostgresql-5bbea03f3b6d9588745122a62070e7316d8b7565.tar.gz
postgresql-5bbea03f3b6d9588745122a62070e7316d8b7565.zip
Suppress more compiler warnings caused by macro tests.
Diffstat (limited to 'src')
-rw-r--r--src/include/access/heapam.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index 74de1f7724c..fdf2e8d86f5 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -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 \
) \
: \