Skip to content

silence -Wuninitialized warnings that previously used the a = a trick

Jonathan Nieder git 1 version New

Get series with b4
b4 am 20110316113540.GB15739@elie

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6match-trees: kill off remaining -Wuninitialized warningmatch-trees.c+5 -20 replies
2/6run-command: initialize failed_errno to 0run-command.c+1 -10 replies
3/6diff --submodule: suppress -Wuninitialized warning by initializing to NULLsubmodule.c+1 -10 replies
4/6rsync transport: clarify insert_packed_refstransport.c+19 -160 replies
5/6wt-status: protect against invalid change_typewt-status.c+2 -00 replies
6/6fast-import: suppress -Wuninitialized warning by initializing to NULLfast-import.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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(-)