Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f22ddf7

Browse files
committed
Add void * cast to MemSet to silence compiler, and add comment that we
already check for alignment.
1 parent 7fb9893 commit f22ddf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/include/c.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $Id: c.h,v 1.153 2003/09/21 17:57:21 tgl Exp $
15+
* $Id: c.h,v 1.154 2003/10/11 19:53:45 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -604,7 +604,8 @@ typedef NameData *Name;
604604
#define MemSet(start, val, len) \
605605
do \
606606
{ \
607-
int32 * _start = (int32 *) (start); \
607+
/* (void *) used because we check for alignment below */ \
608+
int32 * _start = (int32 *) (void *) (start); \
608609
int _val = (val); \
609610
Size _len = (len); \
610611
\

0 commit comments

Comments
 (0)