git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix -Wuninitialized warnings on older gcc
@ 2013-03-26 19:08 Ramsay Jones
  0 siblings, 0 replies; only message in thread
From: Ramsay Jones @ 2013-03-26 19:08 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jeff King, GIT Mailing-list

Hi Junio,

I had prepared 3 patches, but I noticed this afternoon that
the warning in transport.c has already been fixed in maint.
These were built on the tip of master as of saturday evening
(master @ 7b592fad).

Just FYI, as of saturday, Jeff's patches in maint/master had
removed 40 warnings from the MSVC build; 34 of the warnings
were due to commit 25043d8a all on it's lonesome! [1]. The
additional patches in pu, remove an additional 14 warnings.
This leaves only the following:

    $ grep warning msvc-pout | grep uninit
    c:\msysgit\msysgit\home\ramsay\git\fast-import.c(2916) : warning C4700:\
    uninitialized local variable 'oe' used
    c:\msysgit\msysgit\home\ramsay\git\builtin\rev-list.c(341) : warning C4700:\
    uninitialized local variable 'reaches' used
    c:\msysgit\msysgit\home\ramsay\git\builtin\rev-list.c(341) : warning C4700:\
    uninitialized local variable 'all' used
    c:\msysgit\msysgit\home\ramsay\git\merge-recursive.c(1886) : warning C4700:\
    uninitialized local variable 'mrtree' used

ATB,
Ramsay Jones

[1] In case you are puzzled by this, the warning is coming from
the linker, since the msvc build is using link-time code-gen/optimisation.


Ramsay Allan Jones (2):
  fast-import: Fix an gcc -Wuninitialized warning
  cat-file: Fix an gcc -Wuninitialized warning

 builtin/cat-file.c | 2 +-
 fast-import.c      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
1.8.2

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-26 19:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 19:08 [PATCH 0/2] Fix -Wuninitialized warnings on older gcc Ramsay Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).