summaryrefslogtreecommitdiff
path: root/vigra/vigra1.4.0-enumwarn.patch
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-03-29 14:03:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-03-29 14:04:18 +0200
commit31d26fb9b85cd54267e1a5c0d5a3595e8bb4884c (patch)
tree45d858b996ff97e1d3071524029890add6d7ee8c /vigra/vigra1.4.0-enumwarn.patch
parent8431ad2d8b64400052b8e6e218117dd9fb72f316 (diff)
GCC 4.7 -Werror=enum-compare
Diffstat (limited to 'vigra/vigra1.4.0-enumwarn.patch')
-rw-r--r--vigra/vigra1.4.0-enumwarn.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vigra/vigra1.4.0-enumwarn.patch b/vigra/vigra1.4.0-enumwarn.patch
new file mode 100644
index 000000000000..8ea1ed7890da
--- /dev/null
+++ b/vigra/vigra1.4.0-enumwarn.patch
@@ -0,0 +1,13 @@
+--- misc/vigra1.4.0/include/vigra/sized_int.hxx 2012-03-28 13:36:02.743956393 +0200
++++ misc/build/vigra1.4.0/include/vigra/sized_int.hxx 2012-03-28 13:35:44.956057143 +0200
+@@ -80,8 +80,8 @@
+ template<class LIST>
+ struct SelectBiggestIntegerType
+ {
+- enum { cursize = LIST::size,
+- nextsize = SelectBiggestIntegerType<typename LIST::next>::size,
++ enum { cursize = static_cast< int >(LIST::size),
++ nextsize = static_cast< int >(SelectBiggestIntegerType<typename LIST::next>::size),
+ size = (cursize < nextsize) ? nextsize : cursize };
+ typedef typename
+ IfBool<(cursize < nextsize),