aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-10-11 19:53:45 +0000
committerBruce Momjian <bruce@momjian.us>2003-10-11 19:53:45 +0000
commitf22ddf70be1a2a951e57022b60f48e23aba4d26d (patch)
tree38858206d706573c74edd9def11fb9cf238b2df7 /src
parent7fb9893f42138b609521cd88c58bb9e9d1e04a31 (diff)
downloadpostgresql-f22ddf70be1a2a951e57022b60f48e23aba4d26d.tar.gz
postgresql-f22ddf70be1a2a951e57022b60f48e23aba4d26d.zip
Add void * cast to MemSet to silence compiler, and add comment that we
already check for alignment.
Diffstat (limited to 'src')
-rw-r--r--src/include/c.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 934e976803c..c95bc86ab6c 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.153 2003/09/21 17:57:21 tgl Exp $
+ * $Id: c.h,v 1.154 2003/10/11 19:53:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -604,7 +604,8 @@ typedef NameData *Name;
#define MemSet(start, val, len) \
do \
{ \
- int32 * _start = (int32 *) (start); \
+ /* (void *) used because we check for alignment below */ \
+ int32 * _start = (int32 *) (void *) (start); \
int _val = (val); \
Size _len = (len); \
\