Jump to content

UnigineInterface.h produce many compilation warnings and notes


photo

Recommended Posts

Hi,

I observed that SDK 2.7 produce many compilation warnings and notes for UnigineInterface.h.

The easiest example is as:

void test() { }

Interpreter::addExternFunction("test", MakeExternFunction(&test));

which produces such logs:

entertainment_windows_2.7\include\UnigineInterface.h(262): warning C4458: deklaracja „args” powoduje ukrycie elementu członkowskiego klasy

\entertainment_windows_2.7\include\UnigineInterface.h(439): note: zobacz deklarację „Unigine::ExternFunction<Unigine::TypeList<T0,Unigine::TypeList<MyExternObject*,Unigine::MakeTypeList<Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd,Unigine::TypeListEnd>::Type>>,Ret (__cdecl *)(A0)>::args”
1>        with
1>        [
1>            T0=const Unigine::Math::vec3 &,
1>            Ret=const Unigine::Math::vec3 &,
1>            A0=MyExternObject *
1>        ]

The warning says that "args" variable hides other variable. There is other variables too.

It is possible to hide second note (to not log it to console) ?

Cheers,

Jan 

 

Link to comment
×
×
  • Create New...