Klimczak.Jan Posted May 2, 2018 Share Posted May 2, 2018 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
silent Posted May 3, 2018 Share Posted May 3, 2018 Hi Jan, Yes, this is known issue for now (at least for 2015 and 2017 Visual Studio). We will fix them in the future releases. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts