From 54240ef18d44659901834dc4cb54162a3f21ca1b Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Wed, 5 Jul 2006 22:24:53 +0200
Subject: [PATCH] Avoid warnings better.

Rev: src/errors.h:1.34
---
 src/errors.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/errors.h b/src/errors.h
index 97d14c1a2f..3da9312e9b 100644
--- a/src/errors.h
+++ b/src/errors.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: errors.h,v 1.33 2006/07/05 19:24:18 mast Exp $
+|| $Id: errors.h,v 1.34 2006/07/05 20:24:53 mast Exp $
 */
 
 #ifdef ERR_DECLARE
@@ -48,7 +48,7 @@ struct PIKE_CONCAT(NAME,_error_struct) { \
 	       current_offset + (((char *)&(foo.NAME2))-((char *)&foo)), RUNTYPE);
 
 /* Reference foo just to avoid warning. */
-#define EMPTY &foo;
+#define EMPTY (void) &foo;
 
 #define ERR_INHERIT(NAME) \
   low_inherit(PIKE_CONCAT(NAME,_error_program),0,0,0,0,0);
-- 
GitLab