Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0308f91

Browse files
committed
No more warnings on macros, thanks VAdim.
1 parentfcb47f8 commit0308f91

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
#defineheap_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
externHeapAccessStatisticsheap_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
#defineStrNCpy(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
#defineINT_ALIGN_MASK (sizeof(int32) - 1)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp