Closed Bug 1770845 Opened 2 years ago Closed 2 years ago

Fix non-unified build error in gfx/thebes/gfxMacPlatformFontList.mm

Categories

(Core :: Graphics: Text, defect, P3)

Unspecified
macOS
defect

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox100 --- unaffected
firefox101 --- unaffected
firefox102 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

This build error was a regression from bug 1743170. The code that used kDeprecatedFontFamilies was wrapped with #ifdef USE_DEPRECATED_FONT_FAMILY_NAMES, but the definition of kDeprecatedFontFamilies wasn't so the compiler thinks kDeprecatedFontFamilies is unused.

gfx/thebes/gfxMacPlatformFontList.mm:92:28: error: unused variable 'kDeprecatedFontFamilies' [-Werror,-Wunused-const-variable]
constexpr nsLiteralCString kDeprecatedFontFamilies[] = {

This build error was a regression from bug 1743170. The code that used kDeprecatedFontFamilies was wrapped with #ifdef USE_DEPRECATED_FONT_FAMILY_NAMES, but the definition of kDeprecatedFontFamilies wasn't so the compiler thinks kDeprecatedFontFamilies is unused.

gfx/thebes/gfxMacPlatformFontList.mm:92:28: error: unused variable 'kDeprecatedFontFamilies' [-Werror,-Wunused-const-variable]
constexpr nsLiteralCString kDeprecatedFontFamilies[] = {

The Bugbug bot thinks this bug is a defect, but please change it back in case of error.

Type: task → defect
Has Regression Range: --- → yes
Pushed by cpeterson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b37fd715d031
Fix non-unified build error in gfx/thebes/gfxMacPlatformFontList.mm. r=jfkthame,gfx-reviewers,lsalzman
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: