void-packages/srcpkgs/agg/patches/gcc82.patch
Jürgen Buchmüller 4ffc20ef4f
agg: fix build w/ gcc-8.2.0
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-08-22 11:18:18 +02:00

11 lines
704 B
Diff

--- include/agg_renderer_outline_aa.h 2006-10-09 06:07:08.000000000 +0200
+++ include/agg_renderer_outline_aa.h 2018-08-22 11:06:28.038930861 +0200
@@ -1375,7 +1375,7 @@
//---------------------------------------------------------------------
void profile(const line_profile_aa& prof) { m_profile = &prof; }
const line_profile_aa& profile() const { return *m_profile; }
- line_profile_aa& profile() { return *m_profile; }
+ line_profile_aa& profile() { return const_cast<line_profile_aa &>(*m_profile); }
//---------------------------------------------------------------------
int subpixel_width() const { return m_profile->subpixel_width(); }