Kaydet (Commit) 31d26fb9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

GCC 4.7 -Werror=enum-compare

üst 8431ad2d
......@@ -55,6 +55,13 @@ PATCH_FILES=$(TARFILE_NAME).patch
PATCH_FILES += vigra1.4.0-unused-parameters.patch
.END
# At least GCC 4.7 treats more correctly now the type of enumerators prior to
# the closing brace of the enum-specifier (see [dcl.enum] in the C++ 2003
# Standard), leading to "comparison between <enum1> and <enum2> [-Werror=enum-
# compare]" and "enumeral mismatch in conditional expression [-Werror]"
# warnings:
PATCH_FILES += vigra1.4.0-enumwarn.patch
CONFIGURE_DIR=
CONFIGURE_ACTION=
......
--- 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),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment