Re: [PATCH] search.c: fix gcc warning
Laurent MONIN <[email protected]>
| Newsgroups | gmane.comp.web.links |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 27 Feb 2007 13:35:59 +0300 Alexey Tourbin <[email protected]> wrote: > search.c: In function 'point_intersect': > search.c:828: warning: value computed is not used > search.c:828: warning: value computed is not used > --- > src/viewer/text/search.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/src/viewer/text/search.c b/src/viewer/text/search.c > index 5371688..1f3143e 100644 > --- a/src/viewer/text/search.c > +++ b/src/viewer/text/search.c > @@ -825,7 +825,10 @@ point_intersect(struct point *p1, int l1, struct point *p2, int l2) > assert(p2); > if_assert_failed return 0; > > - if (first_time) memset(hash, 0, HASH_SIZE), first_time = 0; > + if (first_time) { > + memset(hash, 0, HASH_SIZE); > + first_time = 0; > + } > > for (i = 0; i < l1; i++) hash[HASH(p1[i])] = 1; > > -- > 1.5.0.1.GIT > Thanks, committed to master branch. Kind regards, -- Zas