* mi/mi-main.c (list_available_thread_groups): Avoid "may be used
uninitialized" warning from gcc on local `tree'.
This commit is contained in:
parent
d42e22fa80
commit
8eee9c5a6f
|
@ -1,3 +1,8 @@
|
||||||
|
2010-01-12 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* mi/mi-main.c (list_available_thread_groups): Avoid "may be used
|
||||||
|
uninitialized" warning from gcc on local `tree'.
|
||||||
|
|
||||||
2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
|
2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
|
||||||
|
|
||||||
Implement core awareness.
|
Implement core awareness.
|
||||||
|
|
|
@ -513,9 +513,10 @@ list_available_thread_groups (VEC (int) *ids, int recurse)
|
||||||
struct osdata_item *item;
|
struct osdata_item *item;
|
||||||
int ix_items;
|
int ix_items;
|
||||||
/* This keeps a map from integer (pid) to VEC (struct osdata_item *)*
|
/* This keeps a map from integer (pid) to VEC (struct osdata_item *)*
|
||||||
The vector contains information about all threads for the given
|
The vector contains information about all threads for the given pid.
|
||||||
pid. */
|
This is assigned an initial value to avoid "may be used uninitialized"
|
||||||
splay_tree tree;
|
warning from gcc. */
|
||||||
|
splay_tree tree = NULL;
|
||||||
|
|
||||||
/* get_osdata will throw if it cannot return data. */
|
/* get_osdata will throw if it cannot return data. */
|
||||||
data = get_osdata ("processes");
|
data = get_osdata ("processes");
|
||||||
|
|
Loading…
Reference in New Issue