[dia] [warningectomy] comparison of unsigned expression >= 0 is always true
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] comparison of unsigned expression >= 0 is always true
- Date: Mon, 20 May 2013 14:50:57 +0000 (UTC)
commit a5d477423afba121b69afeef62768012e00ee4ef
Author: Hans Breuer <hans breuer org>
Date: Mon May 20 16:44:28 2013 +0200
[warningectomy] comparison of unsigned expression >= 0 is always true
prop_widgets.c:397:16: warning: comparison of unsigned expression >= 0
is always true [-Wtautological-compare]
if (new_size >= 0)
~~~~~~~~ ^ ~
lib/prop_widgets.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/prop_widgets.c b/lib/prop_widgets.c
index 327ce3f..4d2a12f 100644
--- a/lib/prop_widgets.c
+++ b/lib/prop_widgets.c
@@ -394,8 +394,7 @@ listprop_emptylines_realloc(ListProperty *prop,guint new_size) {
for (i = 0; i < prop->lines->len; i++)
g_free(g_ptr_array_index(prop->lines,i));
- if (new_size >= 0)
- g_ptr_array_set_size(prop->lines,new_size);
+ g_ptr_array_set_size(prop->lines,new_size);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]