attempt to fix a compiler warning

This commit is contained in:
gfgtdf 2015-11-15 20:30:05 +01:00
parent 627acb9b0b
commit 29ff731327

View file

@ -195,6 +195,13 @@ namespace lua_check_impl
}
}
#if defined(__GNUC__) && !defined(__clang__)
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6 )
// 'list.size()' below is unsigned for some (most but not all) list types.
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
#endif
//also accepts things like std::vector<int>() | boost::adaptors::transformed(..)
template<typename T>
typename boost::enable_if<