aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-09-14 03:59:44 +0000
committerBruce Momjian <bruce@momjian.us>1997-09-14 03:59:44 +0000
commit0a3cee72ac0cd0ca695395b92cd74ff026da8e6a (patch)
tree0686008ae47fd175c692dd802c7533b265ff2f0c
parent973a03744c0368ce163e42797faf6456fe199f47 (diff)
downloadpostgresql-0a3cee72ac0cd0ca695395b92cd74ff026da8e6a.tar.gz
postgresql-0a3cee72ac0cd0ca695395b92cd74ff026da8e6a.zip
Add mention of heap_getattr() compiler warning.
-rw-r--r--src/include/access/heapam.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index c5759c6e766..7236ce92a77 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: heapam.h,v 1.18 1997/09/12 14:29:04 momjian Exp $
+ * $Id: heapam.h,v 1.19 1997/09/14 03:59:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -93,6 +93,10 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics;
* <tup> is the pointer to the heap tuple. <attnum> is the attribute
* number of the column (field) caller wants. <tupleDesc> is a
* pointer to the structure describing the row and all its fields.
+ *
+ * Because this macro is often called with constants, it generates
+ * compiler warnings about 'left-hand comma expression has no effect.
+ *
* ---------------- */
#define heap_getattr(tup, b, attnum, tupleDesc, isnull) \
(AssertMacro((tup) != NULL) ? \