Skip to content
Snippets Groups Projects
Commit f22ddf70 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Add void * cast to MemSet to silence compiler, and add comment that we

already check for alignment.
parent 7fb9893f
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * 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; ...@@ -604,7 +604,8 @@ typedef NameData *Name;
#define MemSet(start, val, len) \ #define MemSet(start, val, len) \
do \ do \
{ \ { \
int32 * _start = (int32 *) (start); \ /* (void *) used because we check for alignment below */ \
int32 * _start = (int32 *) (void *) (start); \
int _val = (val); \ int _val = (val); \
Size _len = (len); \ Size _len = (len); \
\ \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment