From 0ca86e18f03e525b199f1c2cebcddd515b00d339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 9 Apr 2005 12:54:25 +0200 Subject: [PATCH] Fixed warnings. Rev: src/block_alloc.h:1.77 Rev: src/cpp.c:1.158 Rev: src/gc.c:1.265 --- src/block_alloc.h | 4 ++-- src/cpp.c | 4 ++-- src/gc.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/block_alloc.h b/src/block_alloc.h index bd14e3d163..3339e298e2 100644 --- a/src/block_alloc.h +++ b/src/block_alloc.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: block_alloc.h,v 1.76 2005/04/08 16:51:40 grubba Exp $ +|| $Id: block_alloc.h,v 1.77 2005/04/09 10:54:25 grubba Exp $ */ #undef PRE_INIT_BLOCK @@ -646,7 +646,7 @@ struct DATA *PIKE_CONCAT3(make_,DATA,_unlocked)(void *ptr, \ PIKE_HASH_T hval); \ LOW_PTR_HASH_ALLOC(DATA,BSIZE) \ \ -static void PIKE_CONCAT(DATA,_rehash)() \ +static void PIKE_CONCAT(DATA,_rehash)(void) \ { \ /* Time to re-hash */ \ extern const INT32 hashprimes[32]; \ diff --git a/src/cpp.c b/src/cpp.c index efa60a950d..aaabb0cecf 100644 --- a/src/cpp.c +++ b/src/cpp.c @@ -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: cpp.c,v 1.157 2004/12/22 18:46:15 grubba Exp $ +|| $Id: cpp.c,v 1.158 2005/04/09 10:52:16 grubba Exp $ */ #include "global.h" @@ -602,7 +602,7 @@ void cpp_func_constant(struct cpp *this, INT32 args) /* Macro handling. */ -static struct mapping *initial_predefs_mapping() +static struct mapping *initial_predefs_mapping(void) { struct pike_predef_s *def; struct mapping *map = allocate_mapping (0); diff --git a/src/gc.c b/src/gc.c index 8c15817e6f..f3ffd896a5 100644 --- a/src/gc.c +++ b/src/gc.c @@ -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: gc.c,v 1.264 2005/04/06 19:18:25 grubba Exp $ +|| $Id: gc.c,v 1.265 2005/04/09 10:52:52 grubba Exp $ */ #include "global.h" @@ -2681,7 +2681,7 @@ static void free_obj_arr(void *oa) /*! @endclass */ -static void warn_bad_cycles() +static void warn_bad_cycles(void) { /* The reason for the extra level of indirection, is that it might * be clobbered by the longjump() in SET_ONERROR otherwise. -- GitLab