summaryrefslogtreecommitdiff
path: root/graphics/agg/patches
diff options
context:
space:
mode:
authorwiz <wiz>2012-03-28 20:40:38 +0000
committerwiz <wiz>2012-03-28 20:40:38 +0000
commitdac635980dd5b1f9e91e528fcbd50836e52eae1f (patch)
treefa4640b553098e92786d3899b801fe0783b5ef75 /graphics/agg/patches
parentb9f9d0237f5d438871a8ffc9aa73f2e0e0947d36 (diff)
downloadpkgsrc-dac635980dd5b1f9e91e528fcbd50836e52eae1f.tar.gz
Fix build with clang.
Diffstat (limited to 'graphics/agg/patches')
-rw-r--r--graphics/agg/patches/patch-include_agg__renderer__outline__aa.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/agg/patches/patch-include_agg__renderer__outline__aa.h b/graphics/agg/patches/patch-include_agg__renderer__outline__aa.h
new file mode 100644
index 00000000000..d5578a8b106
--- /dev/null
+++ b/graphics/agg/patches/patch-include_agg__renderer__outline__aa.h
@@ -0,0 +1,14 @@
+$NetBSD: patch-include_agg__renderer__outline__aa.h,v 1.1 2012/03/28 20:46:57 wiz Exp $
+
+Fix build with clang-3.1 (avoiding unconst by removing unused function).
+
+--- include/agg_renderer_outline_aa.h.orig 2006-10-09 04:07:08.000000000 +0000
++++ include/agg_renderer_outline_aa.h
+@@ -1375,7 +1375,6 @@ namespace agg
+ //---------------------------------------------------------------------
+ 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; }
+
+ //---------------------------------------------------------------------
+ int subpixel_width() const { return m_profile->subpixel_width(); }