diff --git a/API_Lua.cpp b/API_Lua.cpp index e45a8a2..2a927ca 100644 --- a/API_Lua.cpp +++ b/API_Lua.cpp @@ -120,7 +120,7 @@ BOOL __stdcall EgtLuaGetGlobVectorVar( const wchar_t* wsVar, double vtVal[3]) { // verifico parametro di ritorno - if ( &vtVal == nullptr) + if ( vtVal == nullptr) return FALSE ; // recupero il valore della variabile Vector3d vtTmp ; @@ -135,7 +135,7 @@ BOOL __stdcall EgtLuaGetGlobPointVar( const wchar_t* wsVar, double ptVal[3]) { // verifico parametro di ritorno - if ( &ptVal == nullptr) + if ( ptVal == nullptr) return FALSE ; // recupero il valore della variabile Point3d ptTmp ; diff --git a/EgtInterface.vcxproj b/EgtInterface.vcxproj index a42ec95..31dc73c 100644 --- a/EgtInterface.vcxproj +++ b/EgtInterface.vcxproj @@ -129,6 +129,7 @@ copy $(TargetPath) \EgtProg\DllD32 true false stdcpp17 + -Wno-tautological-undefined-compare Windows @@ -198,6 +199,7 @@ copy $(TargetPath) \EgtProg\Dll32 false None stdcpp17 + -Wno-tautological-undefined-compare Windows