zlib: fix compilation failures with Sun C Compilaer
Do this by removing a couple of useless return statements. Without this change, compilation with Sun C Compiler 5.9 (SunOS_i386 Patch 124868-15 2010/08/11) fails with the following message: "zlib.c", line 192: void function cannot return value "zlib.c", line 201: void function cannot return value cc: acomp failed for zlib.c Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefano Lattarini committed
Apr 22, 2013 at 18:18 UTC
7f49036f282ab345b5c60f36707175ab687d7e52
1 file changed
+2
-2
zlib.c
+2
-2
@@ -189,7 +189,7 @@ void git_deflate_init_gzip(git_zstream *strm, int level)
189
* Use default 15 bits, +16 is to generate gzip header/trailer
190
* instead of the zlib wrapper.
191
*/
192
- return do_git_deflate_init(strm, level, 15 + 16);
192
+ do_git_deflate_init(strm, level, 15 + 16);
193
}
194
195
void git_deflate_init_raw(git_zstream *strm, int level)
@@ -198,7 +198,7 @@ void git_deflate_init_raw(git_zstream *strm, int level)
198
* Use default 15 bits, negate the value to get raw compressed
199
* data without zlib header and trailer.
200
*/
201
- return do_git_deflate_init(strm, level, -15);
201
+ do_git_deflate_init(strm, level, -15);
202
}
203
204
int git_deflate_abort(git_zstream *strm)