From e0b9760f09f6de1b350df78eb41d455e51799d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 25 Apr 2007 18:07:30 +0200 Subject: [PATCH] Fixed warning. Rev: lib/modules/Getopt.pmod:1.31 Rev: src/pike_types.c:1.295 --- lib/modules/Getopt.pmod | 2 +- src/pike_types.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/modules/Getopt.pmod b/lib/modules/Getopt.pmod index 2fefb85bcf..ed86cac2c4 100644 --- a/lib/modules/Getopt.pmod +++ b/lib/modules/Getopt.pmod @@ -18,7 +18,7 @@ static void my_error(string err, int throw_errors) { if(throw_errors) error(err); - werror(err); + werror([string(8)]err); exit(1); } diff --git a/src/pike_types.c b/src/pike_types.c index 5d479ed373..5d8fdf80df 100644 --- a/src/pike_types.c +++ b/src/pike_types.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: pike_types.c,v 1.294 2007/04/25 15:43:07 grubba Exp $ +|| $Id: pike_types.c,v 1.295 2007/04/25 16:01:22 grubba Exp $ */ #include "global.h" @@ -7284,7 +7284,7 @@ void init_types(void) any_type_string = CONSTTYPE(tOr(tVoid,tMix)); weak_type_string = CONSTTYPE(tOr4(tArray,tMultiset,tMapping, tFuncV(tNone,tZero,tOr(tMix,tVoid)))); - /* add_ref(weak_type_string); /* LEAK */ + /* add_ref(weak_type_string); *//* LEAK */ builtin_attributes = allocate_mapping(20); -- GitLab