From 31865ef9532467cdfd4ba83149ea0ea37e415762 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Mon, 5 Mar 2007 21:11:19 +0100 Subject: [PATCH] Fix gcc warning: value computed is not used. Patch by Alexey Tourbin. --- src/viewer/text/search.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/viewer/text/search.c b/src/viewer/text/search.c index 5fc924a09..f13cb6cf7 100644 --- a/src/viewer/text/search.c +++ b/src/viewer/text/search.c @@ -892,7 +892,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;