RTEMS | Update zlib to eliminate warnings with GCC 15 (#5263)
Joel Sherrill (@joel)
gitlab at rtems.org
Mon Jun 9 20:50:38 UTC 2025
Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5263
## Summary
Newer GCC versions have turned K&R old-style function definitions into at least warnings. The zlib version in RTEMS has almost 100 warnings of this type. Hopefully it can be updated to eliminate these. Here is an example of one.
```
In file included from ../../../cpukit/include/zlib.h:34,
from ../../../cpukit/compression/zlib/zutil.h:22,
from ../../../cpukit/compression/zlib/zutil.c:8:
../../../cpukit/compression/zlib/zutil.c: In function 'z_zError':
../../../cpukit/include/zconf.h:139:33: warning: old-style function definition [-Wold-style-definition]
139 | # define zError z_zError
| ^~~~~~~~
../../../cpukit/compression/zlib/zutil.c:135:22: note: in expansion of macro 'zError'
135 | const char * ZEXPORT zError(err)
```
## Steps to reproduce
Compile with GCC 15.
### Pre-set options
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5263
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250609/af8738fb/attachment.htm>
More information about the bugs
mailing list