Closed Bug 1816737 Opened 3 years ago Closed 3 years ago

Warning spam when compiling zlib

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox112 fixed)

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: rkraesig, Assigned: rkraesig)

References

Details

Attachments

(1 external file)

zlib still uses K&R-style function declarations. Since those have been removed in the latest draft of C2x, Clang 15 warns about them by default.

In the relevant GitHub issue, the author has indicated that they will not address this until C2x is published. Until that happens, we can't do anything constructive about those warnings; for now, we should just silence them.

zlib still uses K&R-style function declarations. As of clang 15, these
are warned about by default, as they've been removed in the latest draft
of C2x; this results in thousands(?) of lines of warnings when building
zlib in-tree.

An issue has been filed at https://github.com/madler/zlib/issues/633,
but the author has stated that they are unwilling to change this until
C2x has actually been published.

For now, just silence those warnings when building zlib.

Pushed by rkraesig@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e0320deaaf2d silence warning spam in (third-party) zlib code r=glandium
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
See Also: → 1825557
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: