silence -Wuninitialized warnings that previously used the a = a trick
Get series with b4
b4 am 20110316113540.GB15739@elieVersions newest first
- v1 Latest6 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | match-trees: kill off remaining -Wuninitialized warningmatch-trees.c | +5 | 0 replies | |
| 2/6 | run-command: initialize failed_errno to 0run-command.c | +1 | 0 replies | |
| 3/6 | diff --submodule: suppress -Wuninitialized warning by initializing to NULLsubmodule.c | +1 | 0 replies | |
| 4/6 | rsync transport: clarify insert_packed_refstransport.c | +19 | 0 replies | |
| 5/6 | wt-status: protect against invalid change_typewt-status.c | +2 | 0 replies | |
| 6/6 | fast-import: suppress -Wuninitialized warning by initializing to NULLfast-import.c | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC/PATCH 0/6] silence -Wuninitialized warnings that previously used the a = a trick
Quoted 2 lines · Jonathan Nieder
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 NULL
fast-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(-)