mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[caffe2] miniz fix -Wstrict-prototypes (#98027)
Summary: this fixes -Wstrict-prototypes Test Plan: eyes Reviewed By: rmaz Differential Revision: D44556017 Pull Request resolved: https://github.com/pytorch/pytorch/pull/98027 Approved by: https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
0f0c1b6516
commit
5a54eb0b15
4
third_party/miniz-2.1.0/miniz.c
vendored
4
third_party/miniz-2.1.0/miniz.c
vendored
@ -2240,7 +2240,7 @@ void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h,
|
|||||||
/* Allocate the tdefl_compressor and tinfl_decompressor structures in C so that */
|
/* Allocate the tdefl_compressor and tinfl_decompressor structures in C so that */
|
||||||
/* non-C language bindings to tdefL_ and tinfl_ API don't need to worry about */
|
/* non-C language bindings to tdefL_ and tinfl_ API don't need to worry about */
|
||||||
/* structure size and allocation mechanism. */
|
/* structure size and allocation mechanism. */
|
||||||
tdefl_compressor *tdefl_compressor_alloc()
|
tdefl_compressor *tdefl_compressor_alloc(void)
|
||||||
{
|
{
|
||||||
return (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
|
return (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor));
|
||||||
}
|
}
|
||||||
@ -3006,7 +3006,7 @@ int tinfl_decompress_mem_to_callback(const void *pIn_buf, size_t *pIn_buf_size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef MINIZ_NO_MALLOC
|
#ifndef MINIZ_NO_MALLOC
|
||||||
tinfl_decompressor *tinfl_decompressor_alloc()
|
tinfl_decompressor *tinfl_decompressor_alloc(void)
|
||||||
{
|
{
|
||||||
tinfl_decompressor *pDecomp = (tinfl_decompressor *)MZ_MALLOC(sizeof(tinfl_decompressor));
|
tinfl_decompressor *pDecomp = (tinfl_decompressor *)MZ_MALLOC(sizeof(tinfl_decompressor));
|
||||||
if (pDecomp)
|
if (pDecomp)
|
||||||
|
Reference in New Issue
Block a user