[RFC/PATCH 0/6] silence -Wuninitialized warnings that previously used the a = a trick

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 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(-)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]