[prev in list] [next in list] [prev in thread] [next in thread] 

List:       elinks-dev
Subject:    Re: [elinks-dev] [PATCH] search.c: fix gcc warning
From:       Laurent MONIN <zas () norz ! org>
Date:       2007-03-05 20:54:13
Message-ID: 20070305215413.b04ebfec.zas () norz ! org
[Download RAW message or body]

On Tue, 27 Feb 2007 13:35:59 +0300
Alexey Tourbin <at@altlinux.ru> 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
_______________________________________________
elinks-dev mailing list
elinks-dev@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic