From 8c2b1cb07e43a08cf1e0ac844c81d4e066eacf23 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 16 Jun 2004 20:30:47 +0000 Subject: [PATCH] Initialize local to prevent gcc -O warning --- isamb/isamb.c | 4 ++-- rset/rsbool.c | 3 +-- util/zebramap.c | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/isamb/isamb.c b/isamb/isamb.c index cc242b4..ed3acfd 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -1,4 +1,4 @@ -/* $Id: isamb.c,v 1.45 2004-06-08 15:15:51 adam Exp $ +/* $Id: isamb.c,v 1.46 2004-06-16 20:34:25 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -505,7 +505,7 @@ int insert_int (ISAMB b, struct ISAMB_block *p, void *lookahead_item, struct ISAMB_block *sub_p1 = 0, *sub_p2 = 0; char sub_item[DST_ITEM_MAX]; int sub_size; - int more; + int more = 0; *sp = 0; diff --git a/rset/rsbool.c b/rset/rsbool.c index bc2c692..76d3e7d 100644 --- a/rset/rsbool.c +++ b/rset/rsbool.c @@ -1,4 +1,4 @@ -/* $Id: rsbool.c,v 1.29 2004-06-09 11:11:33 adam Exp $ +/* $Id: rsbool.c,v 1.30 2004-06-16 20:32:07 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -227,7 +227,6 @@ static int r_forward (RSET ct, RSFD rfd, void *buf, int *term_index, { struct rset_bool_info *info = ((struct rset_bool_rfd*)rfd)->info; struct rset_bool_rfd *p = (struct rset_bool_rfd *) rfd; - int cmp=0; int rc; #if RSET_DEBUG diff --git a/util/zebramap.c b/util/zebramap.c index 8b24c04..0d1cf07 100644 --- a/util/zebramap.c +++ b/util/zebramap.c @@ -1,4 +1,4 @@ -/* $Id: zebramap.c,v 1.31 2004-06-15 09:29:31 adam Exp $ +/* $Id: zebramap.c,v 1.32 2004-06-16 20:30:47 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -573,7 +573,7 @@ int zebra_replace_sub(ZebraMaps zms, unsigned reg_id, const char *ex_list, { struct zm_token *token; char replace_string[128]; - int replace_out; + int replace_out = 0; int replace_in = 0; for (token = zm->replace_tokens; !replace_in && token; -- 1.7.10.4