Make warnings stricter on windows and clean up all legit warnings in our code.

This commit is contained in:
Jason Turner
2010-07-30 18:06:17 +00:00
parent b9ae4cd528
commit b971ee44ad
6 changed files with 23 additions and 20 deletions

View File

@@ -146,7 +146,14 @@ namespace chaiscript
template<typename Ret, typename L>
Ret unary_minus(L l)
{
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable : 4146)
return (-l);
#pragma warning(pop)
#else
return (-1);
#endif
}
template<typename Ret, typename L, typename R>