Closed Bug 1825557 Opened 3 years ago Closed 3 years ago

Squash deprecated-non-prototype warnings from zlib code

Categories

(Thunderbird :: Build Config, task)

task

Tracking

(thunderbird_esr102 wontfix, thunderbird112 wontfix)

VERIFIED FIXED
113 Branch
Tracking Status
thunderbird_esr102 --- wontfix
thunderbird112 --- wontfix

People

(Reporter: rjl, Assigned: rjl)

References

Details

Attachments

(1 file, 1 external file)

Clang 15+ warns about function definition without a prototype (-Wdeprecated-non-prototype) as upcoming C2X is removing the functionality completely.

zlib however, contains code that Clang doesn't like, and the author is not yet going to fix the problem. See https://github.com/madler/zlib/issues/633.

Firefox also includes zlib code, and simply disables the warning for zlib since it's third party code.

See Also: → 1816737
Assignee: nobody → rob
Status: NEW → ASSIGNED
Target Milestone: --- → 113 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3042bbb0ecf4
Silence deprecated-non-prototype warnings from zlib. r=dandarnell

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Attached image image.png —

Perfherder confirms way fewer compiler warnings corresponding with the push this change landed in. Success!

Status: RESOLVED → VERIFIED

Where can I see perfherder results? Do I need to run something locally?

It's linked from Treeherder.

Click a build job (B), then in the bottom pane, select the "Performance" tab. There's a whole list of things, the one you want here is "compiler warnings opt". "Lower" (or "Higher") is a button that will take you to the graph.

The thing to keep in mind, is that these numbers also include code from mozilla-central. Most of the remaining compiler warnings are not our code. I think we're down to < 10 warnings from comm-central now that LDAP and ICAL are gone.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: