[RFC/PATCH 0/6] silence -Wuninitialized warnings that previously used the a = a trick
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 16, 2011, 11:35 UTC
- Message-ID
- <20110316113540.GB15739@elie>
- In-Reply-To
- <20110316105709.GC8277@elie>
Jonathan Nieder wrote:
> Right. Below is a patch to play with which gets rid of the > 'expire = expire' style suppressions.
And here are patches on top to squash the remaining "may be used uninitialized" warnings (from gcc-4.6 -O2) that they were meant to address.
The change descriptions are placeholders. In an ideal world, someone interested might pick these up and rebase against master to skip the relevant parts of the above patch altogether.
Jonathan Nieder (6):
match-trees: kill off remaining -Wuninitialized warning
run-command: initialize failed_errno to 0
diff --submodule: suppress -Wuninitialized warning by initializing to
NULL
rsync transport: clarify insert_packed_refs
wt-status: protect against invalid change_type
fast-import: suppress -Wuninitialized warning by initializing to NULLfast-import.c | 2 +- match-trees.c | 7 +++++-- run-command.c | 2 +- submodule.c | 2 +- transport.c | 35 +++++++++++++++++++---------------- wt-status.c | 2 ++ 6 files changed, 29 insertions(+), 21 deletions(-)