Skip to content

Commit

Permalink
Delete workaround for classic zlib (#106659)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas authored Aug 20, 2024
1 parent cee502f commit b3481b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/native/libs/System.IO.Compression.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ if (CLR_CMAKE_TARGET_UNIX OR CLR_CMAKE_TARGET_BROWSER OR CLR_CMAKE_TARGET_WASI)
# Disable implicit fallthrough warning for Zlib and Brotli
set(FLAGS -Wno-implicit-fallthrough)

# Disable no strict prototypes warning for Zlib
# https://github.com/madler/zlib/issues/633
set(FLAGS "${FLAGS} -Wno-strict-prototypes")

# Delete this suppression once brotli is upgraded to vNext (current latest v1.0.9
# does not contain upstream fix: https://github.com/google/brotli/commit/0a3944c)
if (NOT CLR_CMAKE_TARGET_WASI)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ static void WriteAllocCookieUnaligned(void* pDest, DOTNET_ALLOC_COOKIE vCookie)
const size_t DOTNET_ALLOC_HEADER_COOKIE_SIZE_WITH_PADDING = (sizeof(DOTNET_ALLOC_COOKIE) + MEMORY_ALLOCATION_ALIGNMENT - 1) & ~((size_t)MEMORY_ALLOCATION_ALIGNMENT - 1);
const size_t DOTNET_ALLOC_TRAILER_COOKIE_SIZE = sizeof(DOTNET_ALLOC_COOKIE);

voidpf z_custom_calloc(opaque, items, size)
voidpf opaque;
unsigned items;
unsigned size;
voidpf z_custom_calloc(voidpf opaque, unsigned items, unsigned size)
{
(void)opaque; // unreferenced formal parameter

Expand Down Expand Up @@ -122,9 +119,7 @@ static void zcfree_trash_cookie(void* pCookie)
memset(pCookie, 0, sizeof(DOTNET_ALLOC_COOKIE));
}

void z_custom_cfree(opaque, ptr)
voidpf opaque;
voidpf ptr;
void z_custom_cfree(voidpf opaque, voidpf ptr)
{
(void)opaque; // unreferenced formal parameter

Expand Down

0 comments on commit b3481b4

Please sign in to comment.