madler / zlib

A massively spiffy yet delicately unobtrusive compression library.
http://zlib.net/
Other
5.71k stars 2.45k forks source link

Remove K&R function definitions without prototypes #779

Closed Peter-Levine closed 1 year ago

Peter-Levine commented 1 year ago

With clang-16, -Wdeprecated-non-prototype is set by default and such constructs are errors with -std=c23. This PR updates all affected functions.

Fixes https://github.com/madler/zlib/issues/633

floppym commented 1 year ago

@madler Pushed a similar change to the develop branch yesterday.

Neustradamus commented 9 months ago

Merged commits about K&R removal: