Skip to content

Commit 0308f91

Browse files
committed
No more warnings on macros, thanks VAdim.
1 parent fcb47f8 commit 0308f91

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/include/access/heapam.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: heapam.h,v 1.19 1997/09/14 03:59:44 momjian Exp $
9+
* $Id: heapam.h,v 1.20 1997/10/30 23:37:01 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -101,10 +101,10 @@ typedef HeapAccessStatisticsData *HeapAccessStatistics;
101101
#define heap_getattr(tup, b, attnum, tupleDesc, isnull) \
102102
(AssertMacro((tup) != NULL) ? \
103103
((attnum) > (int) (tup)->t_natts) ? \
104-
(((isnull) ? (*(isnull) = true) : (char)NULL), (Datum)NULL) : \
104+
(((isnull) ? (*(isnull) = true) : (void)NULL), (Datum)NULL) : \
105105
((attnum) > 0) ? \
106106
fastgetattr((tup), (attnum), (tupleDesc), (isnull)) : \
107-
(((isnull) ? (*(isnull) = false) : (char)NULL), heap_getsysattr((tup), (b), (attnum))) : \
107+
(((isnull) ? (*(isnull) = false) : (void)NULL), heap_getsysattr((tup), (b), (attnum))) : \
108108
(Datum)NULL)
109109

110110
extern HeapAccessStatistics heap_access_stats; /* in stats.c */

src/include/c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: c.h,v 1.25 1997/10/27 12:07:10 vadim Exp $
10+
* $Id: c.h,v 1.26 1997/10/30 23:36:56 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -691,7 +691,7 @@ typedef struct Exception
691691
*/
692692
/* we do this so if the macro is used in an if action, it will work */
693693
#define StrNCpy(dst,src,len) \
694-
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : NULL,(void)(dst))
694+
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : (void)NULL,(void)(dst))
695695

696696
/* Get a bit mask of the bits set in non-int32 aligned addresses */
697697
#define INT_ALIGN_MASK (sizeof(int32) - 1)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy