Closed Bug 1671775 Opened 4 years ago Closed 4 years ago

error: ‘ColorPattern’ was not declared in this scope; did you mean ‘mozilla::gfx::ColorPattern’?

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect

Tracking

(firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

Details

Attachments

(1 file)

Error with gcc 10:

0:10.82 In file included from Unified_cpp_widget_gtk2.cpp:2:
0:10.82 /root/firefox-gcc-last/widget/gtk/nsNativeBasicThemeGTK.cpp: In member function ‘virtual void nsNativeBasicThemeGTK::PaintScrollbarHorizontal(nsNativeBasicTheme::DrawTarget*, const Rect&, const ComputedStyle&, const EventStates&, bool)’:
0:10.82 /root/firefox-gcc-last/widget/gtk/nsNativeBasicThemeGTK.cpp:120:32: error: ‘ColorPattern’ was not declared in this scope; did you mean ‘mozilla::gfx::ColorPattern’?
0:10.82   120 |   aDrawTarget->FillRect(aRect, ColorPattern(ToDeviceColor(trackColor)));
0:10.82       |                                ^~~~~~~~~~~~
0:10.82       |                                mozilla::gfx::ColorPattern
Assignee: nobody → sledru
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bacfa406adf4
Provide the correct using namespace to fix a build failure r=stransky DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: