Bug 24268 – Warning spam upon zlib C compilation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-11-30T23:46:34Z
Last change time
2024-02-25T13:05:09Z
Assigned to
No Owner
Creator
johanengelen

Comments

Comment #0 by johanengelen — 2023-11-30T23:46:34Z
When compiling zlib C source of Phobos (as part of DMD or LDC builds), there is extreme warning spam like this: ``` D:\a\ldc\ldc\runtime\phobos\etc\c\zlib\gzlib.c(517,13): warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int ZEXPORT gzeof(file) ``` We need to update all function definitions in the C source files...
Comment #1 by kinke — 2023-12-01T13:35:41Z
Comment #2 by dlang-bot — 2024-02-24T13:18:45Z
@kinke updated dlang/phobos pull request #8919 "Bump zlib to latest v1.3.1" mentioning this issue: - Bump zlib to latest v1.3.1 Which should cleanly compile with C11 now, without walls of warnings with e.g. recent clang versions. Resolves Bugzilla Issue 24268. https://github.com/dlang/phobos/pull/8919
Comment #3 by dlang-bot — 2024-02-24T22:07:18Z
dlang/phobos pull request #8919 "Bump zlib to latest v1.3.1" was merged into master: - c97ea340c6706fc3dd416302ff4982ee6242fd4e by Martin Kinkelin: Bump zlib to latest v1.3.1 Which should cleanly compile with C11 now, without walls of warnings with e.g. recent clang versions. Fixes Bugzilla Issue 24268. https://github.com/dlang/phobos/pull/8919