- CMake: added option to turn fail compilation if warning occurs, and warning level 4 with MSVC.

- Fixed some warnings
This commit is contained in:
Baptiste Lepilleur
2013-05-09 18:42:33 +00:00
parent 7b62ceacee
commit 700b38020e
4 changed files with 29 additions and 8 deletions

View File

@@ -193,7 +193,7 @@ namespace JsonTest {
if ( static_cast< U >( expected ) != actual )
{
result.addFailure( file, line, expr );
result << "Expected: " << expected << "\n";
result << "Expected: " << static_cast< U >( expected ) << "\n";
result << "Actual : " << actual;
}
return result;