Closed Bug 1732194 Opened 3 years ago Closed 3 years ago

Fix non-unified build error in image/

Categories

(Core :: Graphics: ImageLib, task, P3)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox-esr78 --- wontfix
firefox-esr91 --- wontfix
firefox92 --- wontfix
firefox93 --- wontfix
firefox94 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

Details

Attachments

(2 files)

Building with ac_add_options --disable-unified-build on macOS hits the following -Wunused-const-variable warning-as-error:

image/decoders/icon/nsIconURI.cpp:39:22 [-Wunused-const-variable] unused variable 'kIconURICID'.

kIconURICID was added in bug 1583044. The only use of kIconURICID was later removed in bug 1589337, leaving kIconURICID still defined but unused.

Building with ac_add_options --disable-unified-build on macOS hits the following -Wunused-const-variable warning-as-error:

image/decoders/icon/nsIconURI.cpp:39:22 [-Wunused-const-variable] unused variable 'kIconURICID'.

kIconURICID was added in bug 1583044. The only use of kIconURICID was later removed in bug 1589337, leaving kIconURICID still defined but unused.

These are just small clean-ups. They're not non-unified build errors.

The function extractAttributeValue can be made static and doesn't need a forward declaration. All the callers of this function are in this .cpp file, after the function definition.

Depends on D126419

Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c7ea3f63682a
Fix non-unified build error in image/. r=tnikkel
https://hg.mozilla.org/integration/autoland/rev/bda89b20f8ae
Make some nsIconURI.cpp variables const and a function static. r=tnikkel
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Blocks: non-unified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: