Kaydet (Commit) 6791f1d5 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Tor Lillqvist

WaE: C4538: const/volatile qualifiers on this type are not supported

Disale warning C4538 in two places where apprently that warning is
generate for some bogus reason.

Change-Id: I93be435b3ce3cb8ca72535416511c793c12bc76c
üst ba6c014d
......@@ -572,10 +572,18 @@ SAL_IMPLEMENT_MAIN()
// app domain
::System::AppDomain ^ current_appdomain =
::System::AppDomain::CurrentDomain;
// Weird warning from this statement
// warning C4538: 'cli::array<Type> ^' : const/volatile qualifiers on this type are not supported
// Could be a compiler bug, says http://stackoverflow.com/questions/12151060/seemingly-inappropriate-compilation-warning-with-c-cli
#pragma warning (push)
#pragma warning (disable: 4538)
// target assembly
Emit::AssemblyBuilder ^ assembly_builder =
current_appdomain->DefineDynamicAssembly(
assembly_name, Emit::AssemblyBuilderAccess::Save, output_dir );
#pragma warning (pop)
if (product.getLength() != 0)
{
array< ::System::Type^>^ params = gcnew array< ::System::Type^> (1);
......
......@@ -101,7 +101,10 @@ static inline void emit_ldarg( Emit::ILGenerator ^ code, ::System::Int32 index )
switch (index)
{
case 0:
#pragma warning (push)
#pragma warning (disable: 4538)
code->Emit( Emit::OpCodes::Ldarg_0 );
#pragma warning (pop)
break;
case 1:
code->Emit( Emit::OpCodes::Ldarg_1 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment