author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Mon, 21 Jun 2010 18:52:29 +0000 (19:52 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 28 Jun 2010 17:01:26 +0000 (10:01 -0700) | ||
commit | 89fe121d5fd808391ee38b7f39b88cb3f912776f | |
tree | b74e8d68b319242168f2f19aef1a6c717181ccdc | tree | snapshot |
parent | bbb1b8a35a06203020f7ab6d1ad58bcb4afe8e93 | commit | diff |
notes: Initialise variable to appease gcc
gcc version 3.4.4 thinks that the 'cmp' variable could be used
while uninitialised and complains thus:
notes.c: In function `write_each_non_note_until':
notes.c:719: warning: 'cmp' might be used uninitialized in \
this function
Note that gcc versions 4.1.2 and 4.4.0 do not issue this warning.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gcc version 3.4.4 thinks that the 'cmp' variable could be used
while uninitialised and complains thus:
notes.c: In function `write_each_non_note_until':
notes.c:719: warning: 'cmp' might be used uninitialized in \
this function
Note that gcc versions 4.1.2 and 4.4.0 do not issue this warning.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c | diff | blob | history |