diff options
author | Doug Evans <dje@google.com> | 2010-01-12 23:05:52 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-01-12 23:05:52 +0000 |
commit | 8eee9c5a6fa7a6ca7bd823773b6fe348d95dbbab (patch) | |
tree | c260ff4903d44bd8b2050b357cc3759e44c26ce8 | |
parent | d42e22fa8067a4c42b0acf46f60191b32cf9ffea (diff) | |
download | gdb-8eee9c5a6fa7a6ca7bd823773b6fe348d95dbbab.zip gdb-8eee9c5a6fa7a6ca7bd823773b6fe348d95dbbab.tar.gz gdb-8eee9c5a6fa7a6ca7bd823773b6fe348d95dbbab.tar.bz2 |
* mi/mi-main.c (list_available_thread_groups): Avoid "may be used
uninitialized" warning from gcc on local `tree'.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d13232c..f2835ed 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> Implement core awareness. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index aee246c..dde0062 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -513,9 +513,10 @@ list_available_thread_groups (VEC (int) *ids, int recurse) struct osdata_item *item; int ix_items; /* This keeps a map from integer (pid) to VEC (struct osdata_item *)* - The vector contains information about all threads for the given - pid. */ - splay_tree tree; + The vector contains information about all threads for the given pid. + This is assigned an initial value to avoid "may be used uninitialized" + warning from gcc. */ + splay_tree tree = NULL; /* get_osdata will throw if it cannot return data. */ data = get_osdata ("processes"); |