[elinks-dev] [PATCH] search.c: fix gcc warning

Alexey Tourbin at at altlinux.ru
Tue Feb 27 03:35:59 MST 2007


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



More information about the elinks-dev mailing list