From ed3dca99599b2cb18918d5f1358bb0a607605344 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Sun, 29 Jun 2008 13:07:03 +0200 Subject: [PATCH] Avoid warnings about statements with no effect. Rev: src/svalue.h:1.164 --- src/svalue.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/svalue.h b/src/svalue.h index 7b04edd38f..a76b32e826 100644 --- a/src/svalue.h +++ b/src/svalue.h @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: svalue.h,v 1.163 2008/06/28 12:06:52 per Exp $ +|| $Id: svalue.h,v 1.164 2008/06/29 11:07:03 mast Exp $ */ #ifndef SVALUE_H @@ -524,13 +524,13 @@ static INLINE struct callable *pass_callable (struct callable *c) {return c;} #else /* !PIKE_DEBUG */ -#define check_svalue(S) 0 -#define check_short_svalue(U, T) 0 +#define check_svalue(S) ((void) 0) +#define check_short_svalue(U, T) ((void) 0) #define check_type(T) do {} while (0) #define check_svalue_type(S) do {} while (0) #define check_refs(S) do {} while (0) #define check_refs2(S,T) do {} while (0) -#define check_type_hint(SVALS, NUM, TYPE_HINT) 0 +#define check_type_hint(SVALS, NUM, TYPE_HINT) ((void) 0) #define dmalloc_check_svalue(S,L) (S) #define dmalloc_check_svalues(S,L,N) (S) #define dmalloc_check_union(U,T,L) (U) -- GitLab