From a42a50dc6f5c48c557920c21c8f05d31f26fea73 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Fri, 22 Sep 2006 17:15:05 +0000 Subject: [PATCH] * gl_anylinked_list2.h [lint] (gl_linked_iterator) (gl_linked_iterator_from_to): Initialize struct completely. * gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise. (gl_tree_iterator_from_to): Likewise * gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise. * gl_array_list.c [lint] (gl_array_iterator) (gl_array_iterator_from_to): Likewise. * gl_array_oset.c [lint] (gl_array_iterator): Likewise. * gl_carray_list.c [lint] (gl_carray_iterator) (gl_carray_iterator_from_to): Likewise. --- lib/ChangeLog | 11 +++++++++++ lib/gl_anylinked_list2.h | 11 +++++++++++ lib/gl_anytree_list2.h | 10 ++++++++++ lib/gl_anytree_oset.h | 5 +++++ lib/gl_array_list.c | 8 ++++++++ lib/gl_array_oset.c | 4 ++++ lib/gl_carray_list.c | 8 ++++++++ 7 files changed, 57 insertions(+) diff --git a/lib/ChangeLog b/lib/ChangeLog index c5c616adc..de057d38d 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,16 @@ 2006-09-22 Ralf Wildenhues + * gl_anylinked_list2.h [lint] (gl_linked_iterator) + (gl_linked_iterator_from_to): Initialize struct completely. + * gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise. + (gl_tree_iterator_from_to): Likewise + * gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise. + * gl_array_list.c [lint] (gl_array_iterator) + (gl_array_iterator_from_to): Likewise. + * gl_array_oset.c [lint] (gl_array_iterator): Likewise. + * gl_carray_list.c [lint] (gl_carray_iterator) + (gl_carray_iterator_from_to): Likewise. + * gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1. * md4.c (md4_process_block): Remove unused variable. * rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests diff --git a/lib/gl_anylinked_list2.h b/lib/gl_anylinked_list2.h index 18d4a0ce2..aaf1569f6 100644 --- a/lib/gl_anylinked_list2.h +++ b/lib/gl_anylinked_list2.h @@ -697,6 +697,11 @@ gl_linked_iterator (gl_list_t list) result.list = list; result.p = list->root.next; result.q = &list->root; +#ifdef lint + result.i = 0; + result.j = 0; + result.count = 0; +#endif return result; } @@ -763,6 +768,12 @@ gl_linked_iterator_from_to (gl_list_t list, result.q = node; } +#ifdef lint + result.i = 0; + result.j = 0; + result.count = 0; +#endif + return result; } diff --git a/lib/gl_anytree_list2.h b/lib/gl_anytree_list2.h index 19ecae5f7..a0154596d 100644 --- a/lib/gl_anytree_list2.h +++ b/lib/gl_anytree_list2.h @@ -349,6 +349,11 @@ gl_tree_iterator (gl_list_t list) result.p = node; /* End point is past the rightmost node. */ result.q = NULL; +#ifdef lint + result.i = 0; + result.j = 0; + result.count = 0; +#endif return result; } @@ -368,6 +373,11 @@ gl_tree_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index) result.p = (start_index < count ? node_at (list->root, start_index) : NULL); /* End point is the node at position end_index. */ result.q = (end_index < count ? node_at (list->root, end_index) : NULL); +#ifdef lint + result.i = 0; + result.j = 0; + result.count = 0; +#endif return result; } diff --git a/lib/gl_anytree_oset.h b/lib/gl_anytree_oset.h index 84286bdd8..6ac07e462 100644 --- a/lib/gl_anytree_oset.h +++ b/lib/gl_anytree_oset.h @@ -211,6 +211,11 @@ gl_tree_iterator (gl_oset_t set) result.p = node; /* End point is past the rightmost node. */ result.q = NULL; +#ifdef lint + result.i = 0; + result.j = 0; + result.count = 0; +#endif return result; } diff --git a/lib/gl_array_list.c b/lib/gl_array_list.c index cb39fa0fc..811a30913 100644 --- a/lib/gl_array_list.c +++ b/lib/gl_array_list.c @@ -394,6 +394,10 @@ gl_array_iterator (gl_list_t list) result.count = list->count; result.p = list->elements + 0; result.q = list->elements + list->count; +#ifdef lint + result.i = 0; + result.j = 0; +#endif return result; } @@ -411,6 +415,10 @@ gl_array_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index) result.count = list->count; result.p = list->elements + start_index; result.q = list->elements + end_index; +#ifdef lint + result.i = 0; + result.j = 0; +#endif return result; } diff --git a/lib/gl_array_oset.c b/lib/gl_array_oset.c index 329357fbe..b73d69031 100644 --- a/lib/gl_array_oset.c +++ b/lib/gl_array_oset.c @@ -229,6 +229,10 @@ gl_array_iterator (gl_oset_t set) result.count = set->count; result.p = set->elements + 0; result.q = set->elements + set->count; +#ifdef lint + result.i = 0; + result.j = 0; +#endif return result; } diff --git a/lib/gl_carray_list.c b/lib/gl_carray_list.c index 5be0d070f..86fce07c1 100644 --- a/lib/gl_carray_list.c +++ b/lib/gl_carray_list.c @@ -528,6 +528,10 @@ gl_carray_iterator (gl_list_t list) result.count = list->count; result.i = 0; result.j = list->count; +#ifdef lint + result.p = 0; + result.q = 0; +#endif return result; } @@ -545,6 +549,10 @@ gl_carray_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index result.count = list->count; result.i = start_index; result.j = end_index; +#ifdef lint + result.p = 0; + result.q = 0; +#endif return result; } -- 2.11.0