Hugin throws off a tremendous amount of build noise of the form:
[ 84%] Building CXX object
src/hugin_cpfind/cpfind/CMakeFiles/cpfind.dir/main.cpp.o
In file included from
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/stdimage.hxx:42:0,
from
/home/rlk/sandbox/hugin/src/hugin_cpfind/./localfeatures/Image.h:25,
from
/home/rlk/sandbox/hugin/src/hugin_cpfind/cpfind/PanoDetector.h:31,
from
/home/rlk/sandbox/hugin/src/hugin_cpfind/cpfind/main.cpp:31:
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx: In instantiation
of ‘struct
vigra::detail::SelectBiggestIntegerType<vigra::detail::IntTypeList<long long
int, vigra::Int_type_not_supported_on_this_platform> >’:
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx:79:10:
recursively required from ‘struct
vigra::detail::SelectBiggestIntegerType<vigra::detail::IntTypeList<short int,
vigra::detail::IntTypeList<int, vigra::detail::IntTypeList<long int,
vigra::detail::IntTypeList<long long int,
vigra::Int_type_not_supported_on_this_platform> > > > >’
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx:79:10: required
from ‘struct
vigra::detail::SelectBiggestIntegerType<vigra::detail::IntTypeList<signed char,
vigra::detail::IntTypeList<short int, vigra::detail::IntTypeList<int,
vigra::detail::IntTypeList<long int, vigra::detail::IntTypeList<long long int,
vigra::Int_type_not_supported_on_this_platform> > > > > >’
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx:141:65:
required from here
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx:79:10: warning:
comparison between ‘enum vigra::detail::IntTypeList<long long int,
vigra::Int_type_not_supported_on_this_platform>::<anonymous>’ and ‘enum
vigra::detail::SelectBiggestIntegerType<vigra::Int_type_not_supported_on_this_platform>::<anonymous>’
[-Wenum-compare]
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx:79:10: warning:
enumeral mismatch in conditional expression:
‘vigra::detail::SelectBiggestIntegerType<vigra::Int_type_not_supported_on_this_platform>::<anonymous
enum>’ vs ‘vigra::detail::IntTypeList<long long int,
vigra::Int_type_not_supported_on_this_platform>::<anonymous enum>’
[-Wenum-compare]
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx: In instantiation
of ‘struct
vigra::detail::SelectBiggestIntegerType<vigra::detail::IntTypeList<long int,
vigra::detail::IntTypeList<long long int,
vigra::Int_type_not_supported_on_this_platform> > >’:
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx:79:10:
recursively required from ‘struct
vigra::detail::SelectBiggestIntegerType<vigra::detail::IntTypeList<short int,
vigra::detail::IntTypeList<int, vigra::detail::IntTypeList<long int,
vigra::detail::IntTypeList<long long int,
vigra::Int_type_not_supported_on_this_platform> > > > >’
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx:79:10: required
from ‘struct
vigra::detail::SelectBiggestIntegerType<vigra::detail::IntTypeList<signed char,
vigra::detail::IntTypeList<short int, vigra::detail::IntTypeList<int,
vigra::detail::IntTypeList<long int, vigra::detail::IntTypeList<long long int,
vigra::Int_type_not_supported_on_this_platform> > > > > >’
/home/rlk/sandbox/hugin/src/foreign/vigra/vigra/sized_int.hxx:141:65:
required from here
This patch fixes it.
diff -r 816c5e57562e src/foreign/vigra/vigra/sized_int.hxx
--- a/src/foreign/vigra/vigra/sized_int.hxx Thu Feb 21 19:10:21 2013 +0100
+++ b/src/foreign/vigra/vigra/sized_int.hxx Fri Feb 22 10:00:40 2013 -0500
@@ -43,6 +43,14 @@
namespace vigra {
+#ifdef __GNUC__
+# if __GNUC__ >= 4
+# if __GNUC_MINOR__ >= 6
+#pragma GCC diagnostic ignored "-Wenum-compare"
+# endif
+# endif
+#endif
+
class Int_type_not_supported_on_this_platform {};
#ifndef NO_PARTIAL_TEMPLATE_SPECIALIZATION
@@ -160,6 +168,14 @@
#endif // NO_PARTIAL_TEMPLATE_SPECIALIZATION
+#ifdef __GNUC__
+# if __GNUC__ >= 4
+# if __GNUC_MINOR__ >= 6
+#pragma GCC diagnostic warning "-Wenum-compare"
+# endif
+# endif
+#endif
+
} // namespace vigra
#endif /* VIGRA_SIZED_INT_HXX */
--
Robert Krawitz <[email protected]>
MIT VI-3 1987 - Congratulations MIT Engineers men's hoops Final Four!
Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
--
--
You received this message because you are subscribed to the Google Groups
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.