Re: [PATCH] Avoid gcc compiler warning

2014-12-09 Thread Johannes Schindelin
e range 0-3 (and we > cover all cases). That is of course correct, but still does not address the compiler warning. Junio, you said that you would prefer the useless initialization, so here goes: -- snipsnap -- Subject: [PATCH] Avoid gcc compiler warning At least on this developer's MacOSX (Sn

Re: [PATCH] Avoid gcc compiler warning

2014-12-09 Thread Jeff King
On Mon, Dec 08, 2014 at 05:38:59PM +0100, Johannes Schindelin wrote: > At least on this developer's MacOSX (Snow Leopard, gcc-4.2.1), GCC prints > a warning that 'hash' may be used uninitialized when compiling > test-hashmap that 'hash' may be used uninitialized (but GCC 4.6.3 on this > developer'

[PATCH] Avoid gcc compiler warning

2014-12-08 Thread Johannes Schindelin
At least on this developer's MacOSX (Snow Leopard, gcc-4.2.1), GCC prints a warning that 'hash' may be used uninitialized when compiling test-hashmap that 'hash' may be used uninitialized (but GCC 4.6.3 on this developer's Ubuntu server does not report this problem). Since hash() is called from pe