From 5f67cf0cf7250c04b9e4cc803ab93ca52b516438 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 11 Oct 2003 19:53:45 +0000 Subject: [PATCH] Add void * cast to MemSet to silence compiler, and add comment that we already check for alignment. --- src/include/c.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/c.h b/src/include/c.h index 48601310d4..60ea4c1fc7 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -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); \ \ -- 2.39.5