Squash deprecated-non-prototype warnings from zlib code
Categories
(Thunderbird :: Build Config, task)
Tracking
(thunderbird_esr102 wontfix, thunderbird112 wontfix)
People
(Reporter: rjl, Assigned: rjl)
References
Details
Attachments
(1 file, 1 external file)
|
5.95 KB,
image/png
|
Details |
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.
| Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3042bbb0ecf4
Silence deprecated-non-prototype warnings from zlib. r=dandarnell
| Assignee | ||
Comment 3•3 years ago
|
||
Perfherder confirms way fewer compiler warnings corresponding with the push this change landed in. Success!
| Assignee | ||
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Where can I see perfherder results? Do I need to run something locally?
| Assignee | ||
Comment 5•3 years ago
|
||
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.
Description
•