Dash:
[t2-trunk.git] / package / graphic / agg / hotfix-gcc7.patch
blob0e936a6a6d0682f2395e01d7d2aa858ea474476c
1 --- agg-2.4/include/agg_renderer_outline_aa.h
2 +++ agg-2.4/include/agg_renderer_outline_aa.h
3 @@ -1365,7 +1365,7 @@
4 //---------------------------------------------------------------------
5 void profile(const line_profile_aa& prof) { m_profile = &prof; }
6 const line_profile_aa& profile() const { return *m_profile; }
7 - line_profile_aa& profile() { return *m_profile; }
8 + //line_profile_aa& profile() { return *m_profile; } // unused, not accepted by LLVM/clang -ReneR
10 //---------------------------------------------------------------------
11 int subpixel_width() const { return m_profile->subpixel_width(); }
12 --- agg-2.4/include/agg_scanline_u.h
13 +++ agg-2.4/include/agg_scanline_u.h
14 @@ -458,7 +458,7 @@
15 class scanline32_u8_am : public scanline32_u8
17 public:
18 - typedef scanline_u8 base_type;
19 + typedef scanline32_u8 base_type;
20 typedef AlphaMask alpha_mask_type;
21 typedef base_type::cover_type cover_type;
22 typedef base_type::coord_type coord_type;