Skip to content

Upgrade of zlib required to solve compilation warnings due to K&R style #398

Description

@stcarrez

When we compile aws with GNAT >= 15, we now have many compilation warnings:

/src/gnat/aws/include/zlib/uncompr.c: In function 'uncompress2':
/src/gnat/aws/include/zlib/uncompr.c:27:13: warning: old-style function definition [-Wold-style-definition]
   27 | int ZEXPORT uncompress2 (dest, destLen, source, sourceLen)
      |             ^~~~~~~~~~~
/src/gnat/aws/include/zlib/uncompr.c: In function 'uncompress':
/src/gnat/aws/include/zlib/uncompr.c:86:13: warning: old-style function definition [-Wold-style-definition]
   86 | int ZEXPORT uncompress (dest, destLen, source, sourceLen)
      |             ^~~~~~~~~~
/src/gnat/aws/include/zlib/compress.c: In function 'compress2':
/src/gnat/aws/include/zlib/compress.c:22:13: warning: old-style function definition [-Wold-style-definition]
   22 | int ZEXPORT compress2 (dest, destLen, source, sourceLen, level)
      |             ^~~~~~~~~

because the include/zlib integration corresponds to the 1.2.11 version, integrated on Feb 3 2019.

Since then, the zlib library was improved and updated to use ANSI C.
Integration of zlib 1.3.2 fixes these compilation warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions