Better fix that works with more compilers, old and new, VC++ and GCC.

This commit is contained in:
Beman
2013-05-13 11:05:31 -04:00
parent 62915438e3
commit db2f30b77c
2 changed files with 2 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ namespace
++v; // verify integer_cover_operators being applied to this type -
// will fail to compile if no endian<> specialization is present
Endian x = v+v;
Endian x(v+v);
if ( x == x ) // silence warning
return;
}

View File

@@ -61,6 +61,7 @@
<PrecompiledHeader>
</PrecompiledHeader>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>