Skip to content

Commit 7f49036

Browse files
slattarinigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c3c2e1a commit 7f49036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zlib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void git_deflate_init_gzip(git_zstream *strm, int level)
189189
* Use default 15 bits, +16 is to generate gzip header/trailer
190190
* instead of the zlib wrapper.
191191
*/
192-
return do_git_deflate_init(strm, level, 15 + 16);
192+
do_git_deflate_init(strm, level, 15 + 16);
193193
}
194194

195195
void git_deflate_init_raw(git_zstream *strm, int level)
@@ -198,7 +198,7 @@ void git_deflate_init_raw(git_zstream *strm, int level)
198198
* Use default 15 bits, negate the value to get raw compressed
199199
* data without zlib header and trailer.
200200
*/
201-
return do_git_deflate_init(strm, level, -15);
201+
do_git_deflate_init(strm, level, -15);
202202
}
203203

204204
int git_deflate_abort(git_zstream *strm)

0 commit comments

Comments
 (0)